adding a comment

This commit is contained in:
tibbi 2018-01-19 20:16:25 +01:00
parent d5d56ec127
commit 9e7d99b822
1 changed files with 1 additions and 0 deletions

View File

@ -234,6 +234,7 @@ class CalDAVHandler(val context: Context) {
val originalInstanceTime = cursor.getLongValue(CalendarContract.Events.ORIGINAL_INSTANCE_TIME) val originalInstanceTime = cursor.getLongValue(CalendarContract.Events.ORIGINAL_INSTANCE_TIME)
val reminders = getCalDAVEventReminders(id) val reminders = getCalDAVEventReminders(id)
// make sure all-day events start at 5am in the users timezone
if (allDay == 1 && timeZone == "UTC") { if (allDay == 1 && timeZone == "UTC") {
val offset = DateTimeZone.getDefault().getOffset(System.currentTimeMillis()) / 1000 val offset = DateTimeZone.getDefault().getOffset(System.currentTimeMillis()) / 1000
val FIVE_HOURS = 5 * 60 * 60 val FIVE_HOURS = 5 * 60 * 60