calendarui/editors/src/calenunifiededitorcontrol.cpp
branchRCL_3
changeset 16 55d60436f00b
parent 14 21239b3bcd78
child 18 d68a4b5d5885
equal deleted inserted replaced
15:9711e452b5e9 16:55d60436f00b
  1149             // In Editor it should be displayed as "StartDate: 15-08-2010 & EndDate:15-08-2010" 
  1149             // In Editor it should be displayed as "StartDate: 15-08-2010 & EndDate:15-08-2010" 
  1150             // But, while saving EndDate is saved as 12:00am, 16-08-2010. 
  1150             // But, while saving EndDate is saved as 12:00am, 16-08-2010. 
  1151             TTime startDate = iUnifiedEditor.Edited().StartDateTime();
  1151             TTime startDate = iUnifiedEditor.Edited().StartDateTime();
  1152             startDate = CalenDateUtils::BeginningOfDay( startDate );
  1152             startDate = CalenDateUtils::BeginningOfDay( startDate );
  1153             iUnifiedEditor.Edited().SetStartDateTimeL(startDate);
  1153             iUnifiedEditor.Edited().SetStartDateTimeL(startDate);
  1154             if( result >= startDate )
  1154 
       
  1155             if( result >= startDate && (!iUnifiedEditor.iCheck ) || iUnifiedEditor.Edited().EntryType() == CCalEntry::EEvent)
  1155                 {
  1156                 {
  1156                 result += TTimeIntervalDays( KOneDay );
  1157                 result += TTimeIntervalDays( KOneDay );
  1157                 }
  1158                 }
  1158             }
  1159             }
  1159 
  1160