Fix error upsyncing exceptions to all-day events

Bug: 2893712
Change-Id: I471e487ec1f7ce11cccdde86f8d8bd8435edd27d
This commit is contained in:
Marc Blank 2010-08-31 16:29:05 -07:00
parent 086aac2386
commit 3faa14693c
1 changed files with 5 additions and 0 deletions

View File

@ -1655,6 +1655,11 @@ public class CalendarSyncAdapter extends AbstractSyncAdapter {
// TODO Add reminders to exceptions (allow them to be specified!)
Long originalTime = entityValues.getAsLong(Events.ORIGINAL_INSTANCE_TIME);
if (originalTime != null) {
if (allDay) {
// For all day events, we need our local all-day time
originalTime =
CalendarUtilities.getLocalAllDayCalendarTime(originalTime, mLocalTimeZone);
}
s.data(Tags.CALENDAR_EXCEPTION_START_TIME,
CalendarUtilities.millisToEasDateTime(originalTime));
} else {