calendarui/commonutils/src/calenentryutil.cpp
branchRCL_3
changeset 14 21239b3bcd78
parent 10 38571fd2a704
equal deleted inserted replaced
13:1984aceb8774 14:21239b3bcd78
  1013     
  1013     
  1014     TTimeIntervalDays differenceInTime = aStopTime.DaysFrom(aStartTime); // fix for AllDayEntry issue
  1014     TTimeIntervalDays differenceInTime = aStopTime.DaysFrom(aStartTime); // fix for AllDayEntry issue
  1015 
  1015 
  1016     if( aStartTime == CalenDateUtils::BeginningOfDay( aStartTime ) 
  1016     if( aStartTime == CalenDateUtils::BeginningOfDay( aStartTime ) 
  1017             && aStopTime == CalenDateUtils::BeginningOfDay( aStopTime ) 
  1017             && aStopTime == CalenDateUtils::BeginningOfDay( aStopTime ) 
  1018             && aStartTime != aStopTime && differenceInTime.Int() == 1) // fix for AllDayEntry issue
  1018             && aStartTime != aStopTime && differenceInTime.Int() >= 1) // fix for AllDayEntry issue
  1019         {
  1019         {
  1020         allDayEvent = ETrue;
  1020         allDayEvent = ETrue;
  1021         }
  1021         }
  1022     
  1022     
  1023     TRACE_EXIT_POINT;
  1023     TRACE_EXIT_POINT;