calendarui/commonutils/src/calenentryutil.cpp
branchRCL_3
changeset 10 38571fd2a704
parent 0 f979ecb2b13e
child 14 21239b3bcd78
--- a/calendarui/commonutils/src/calenentryutil.cpp	Fri Feb 19 22:49:53 2010 +0200
+++ b/calendarui/commonutils/src/calenentryutil.cpp	Fri Mar 12 15:42:35 2010 +0200
@@ -1010,10 +1010,12 @@
     TRACE_ENTRY_POINT;
 
     TBool allDayEvent(EFalse);
+    
+    TTimeIntervalDays differenceInTime = aStopTime.DaysFrom(aStartTime); // fix for AllDayEntry issue
 
     if( aStartTime == CalenDateUtils::BeginningOfDay( aStartTime ) 
             && aStopTime == CalenDateUtils::BeginningOfDay( aStopTime ) 
-            && aStartTime != aStopTime )
+            && aStartTime != aStopTime && differenceInTime.Int() == 1) // fix for AllDayEntry issue
         {
         allDayEvent = ETrue;
         }