ui/uiengine/medialists/src/glxcache.cpp
changeset 55 fb37077c270f
parent 23 74c9f037fd5d
--- a/ui/uiengine/medialists/src/glxcache.cpp	Tue Jul 06 14:16:16 2010 +0300
+++ b/ui/uiengine/medialists/src/glxcache.cpp	Wed Aug 18 09:48:53 2010 +0300
@@ -241,6 +241,7 @@
         RArray<TMPXAttribute>& aNewAttributes)
     {
     TRACER("CGlxCache::CopyNewAndModifiedL");
+    CleanupClosePushL(aNewAttributes);
     
     /// @todo This is all temporary until global chunk based CMPXMedia is available
     TInt count = aSource.Count();
@@ -305,11 +306,14 @@
                         }
                     else if (attrib == KGlxMediaGeneralLastModifiedDate)
                         {
-                        aTarget.SetTObjectValueL(attrib, aSource.ValueTObjectL<TInt64>(attrib));
+                        TTime modified = aSource.ValueTObjectL<TInt64>(attrib);
+                        TTimeIntervalSeconds utcOffset = User::UTCOffset();
+                        modified += utcOffset;
+                        aTarget.SetTObjectValueL(attrib, modified);
                         }
                     else if (attrib == KMPXMediaGeneralSize)
                         {
-                        aTarget.SetTObjectValueL(attrib, aSource.ValueTObjectL<TInt>(attrib));
+                        aTarget.SetTObjectValueL(attrib, aSource.ValueTObjectL<TUint>(attrib));
                         }
                     else if (attrib == KMPXMediaColDetailSpaceId)
                         {
@@ -373,6 +377,7 @@
                 }
             }
         }
+    CleanupStack::Pop(&aNewAttributes);
     }
 
 // -----------------------------------------------------------------------------