equal
deleted
inserted
replaced
1008 EXPORT_C TBool CCalenEntryUtil::CheckForAlldayEventL( TTime aStartTime, TTime aStopTime ) |
1008 EXPORT_C TBool CCalenEntryUtil::CheckForAlldayEventL( TTime aStartTime, TTime aStopTime ) |
1009 { |
1009 { |
1010 TRACE_ENTRY_POINT; |
1010 TRACE_ENTRY_POINT; |
1011 |
1011 |
1012 TBool allDayEvent(EFalse); |
1012 TBool allDayEvent(EFalse); |
|
1013 |
|
1014 TTimeIntervalDays differenceInTime = aStopTime.DaysFrom(aStartTime); // fix for AllDayEntry issue |
1013 |
1015 |
1014 if( aStartTime == CalenDateUtils::BeginningOfDay( aStartTime ) |
1016 if( aStartTime == CalenDateUtils::BeginningOfDay( aStartTime ) |
1015 && aStopTime == CalenDateUtils::BeginningOfDay( aStopTime ) |
1017 && aStopTime == CalenDateUtils::BeginningOfDay( aStopTime ) |
1016 && aStartTime != aStopTime ) |
1018 && aStartTime != aStopTime && differenceInTime.Int() == 1) // fix for AllDayEntry issue |
1017 { |
1019 { |
1018 allDayEvent = ETrue; |
1020 allDayEvent = ETrue; |
1019 } |
1021 } |
1020 |
1022 |
1021 TRACE_EXIT_POINT; |
1023 TRACE_EXIT_POINT; |