Merge "Fix bug #2585298 (google calendar sync clears eventTimezone field for recurring allDay events)"
This commit is contained in:
committed by
Android (Google) Code Review
commit
1477798b4f
@@ -181,7 +181,9 @@ public class RecurrenceSet {
|
||||
boolean inUtc = start.parse(dtstart);
|
||||
boolean allDay = start.allDay;
|
||||
|
||||
if (inUtc) {
|
||||
// We force TimeZone to UTC for "all day recurring events" as the server is sending no
|
||||
// TimeZone in DTSTART for them
|
||||
if (inUtc || allDay) {
|
||||
tzid = Time.TIMEZONE_UTC;
|
||||
}
|
||||
|
||||
@@ -204,10 +206,7 @@ public class RecurrenceSet {
|
||||
}
|
||||
|
||||
if (allDay) {
|
||||
// TODO: also change tzid to be UTC? that would be consistent, but
|
||||
// that would not reflect the original timezone value back to the
|
||||
// server.
|
||||
start.timezone = Time.TIMEZONE_UTC;
|
||||
start.timezone = Time.TIMEZONE_UTC;
|
||||
}
|
||||
long millis = start.toMillis(false /* use isDst */);
|
||||
values.put(Calendar.Events.DTSTART, millis);
|
||||
|
||||
Reference in New Issue
Block a user