--- 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);
}
// -----------------------------------------------------------------------------