ui/uiengine/medialists/src/glxcache.cpp
changeset 52 a3a4c0de738e
parent 23 74c9f037fd5d
--- a/ui/uiengine/medialists/src/glxcache.cpp	Sat Jul 10 00:59:39 2010 +0530
+++ b/ui/uiengine/medialists/src/glxcache.cpp	Fri Jul 23 20:41:04 2010 +0530
@@ -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);
     }
 
 // -----------------------------------------------------------------------------