DO NOT MERGE: Fix error upsyncing exceptions to all-day events
* Backport of I471e487ec1f7ce11cccdde86f8d8bd8435edd27d (master) Bug: 2893712 Change-Id: Iaada0969f77a8e41a66426f58ca2886529d3fd8f
This commit is contained in:
parent
90f1198f67
commit
2e7a84ff26
@ -1647,6 +1647,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 {
|
||||
|
Loading…
Reference in New Issue
Block a user