Loading app/src/main/java/com/android/calendar/calendarcommon2/Time.java +1 −0 Original line number Diff line number Diff line Loading @@ -212,6 +212,7 @@ public class Time { } public void switchTimezone(String timezone) { this.timezone = timezone; long msBefore = mCalendar.getTimeInMillis(); mCalendar.setTimeZone(TimeZone.getTimeZone(timezone)); mCalendar.setTimeInMillis(msBefore); Loading app/src/main/java/com/android/calendar/recurrencepicker/RecurrencePickerDialog.java +4 −0 Original line number Diff line number Diff line Loading @@ -340,6 +340,10 @@ public class RecurrencePickerDialog extends DialogFragment implements OnItemSele model.endDate.switchTimezone(Time.TIMEZONE_UTC); model.endDate.normalize(); er.until = model.endDate.format2445(); if (!er.until.endsWith("Z")) { // Safeguard to not create invalid data throw new IllegalStateException("UNTIL parameter not in UTC"); } er.count = 0; } else { throw new IllegalStateException("end = END_BY_DATE but endDate is null"); Loading Loading
app/src/main/java/com/android/calendar/calendarcommon2/Time.java +1 −0 Original line number Diff line number Diff line Loading @@ -212,6 +212,7 @@ public class Time { } public void switchTimezone(String timezone) { this.timezone = timezone; long msBefore = mCalendar.getTimeInMillis(); mCalendar.setTimeZone(TimeZone.getTimeZone(timezone)); mCalendar.setTimeInMillis(msBefore); Loading
app/src/main/java/com/android/calendar/recurrencepicker/RecurrencePickerDialog.java +4 −0 Original line number Diff line number Diff line Loading @@ -340,6 +340,10 @@ public class RecurrencePickerDialog extends DialogFragment implements OnItemSele model.endDate.switchTimezone(Time.TIMEZONE_UTC); model.endDate.normalize(); er.until = model.endDate.format2445(); if (!er.until.endsWith("Z")) { // Safeguard to not create invalid data throw new IllegalStateException("UNTIL parameter not in UTC"); } er.count = 0; } else { throw new IllegalStateException("end = END_BY_DATE but endDate is null"); Loading