Default time zones for calendar event

This commit is contained in:
M66B 2023-04-10 07:18:28 +02:00
parent 0d2d084d8e
commit d4d0e8f790
1 changed files with 2 additions and 2 deletions

View File

@ -162,8 +162,8 @@ public class CalendarHelper {
TimezoneInfo tzinfo = icalendar.getTimezoneInfo();
TimezoneAssignment tza = (tzinfo == null ? null : tzinfo.getTimezone(event.getDateStart()));
TimeZone tz = (tza == null ? null : tza.getTimeZone());
if (tz != null)
values.put(CalendarContract.Events.EVENT_TIMEZONE, tz.getID());
values.put(CalendarContract.Events.EVENT_TIMEZONE,
tz == null ? TimeZone.getDefault().getID() : tz.getID());
values.put(CalendarContract.Events.DTSTART, start.getTime());
values.put(CalendarContract.Events.DTEND, end.getTime());