From 79f8b3dade8330cd5ffe39bcec9595974ffb6dbb Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 7 Jan 2019 20:10:31 +0100 Subject: [PATCH] fixing the timezone at one more place --- .../com/simplemobiletools/calendar/pro/helpers/CalDAVHelper.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/CalDAVHelper.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/CalDAVHelper.kt index 1b6033218..0b2f2a50f 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/CalDAVHelper.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/CalDAVHelper.kt @@ -178,7 +178,6 @@ class CalDAVHelper(val context: Context) { CalendarContract.Events.DESCRIPTION, CalendarContract.Events.DTSTART, CalendarContract.Events.DTEND, - CalendarContract.Events.EVENT_TIMEZONE, CalendarContract.Events.DURATION, CalendarContract.Events.ALL_DAY, CalendarContract.Events.RRULE, @@ -414,7 +413,7 @@ class CalDAVHelper(val context: Context) { put(CalendarContract.Events.DTSTART, occurrenceTS) put(CalendarContract.Events.DTEND, occurrenceTS + (event.endTS - event.startTS)) put(CalendarContract.Events.ORIGINAL_ID, event.getCalDAVEventId()) - put(CalendarContract.Events.EVENT_TIMEZONE, TimeZone.getDefault().toString()) + put(CalendarContract.Events.EVENT_TIMEZONE, TimeZone.getDefault().id.toString()) put(CalendarContract.Events.ORIGINAL_INSTANCE_TIME, occurrenceTS * 1000L) } }