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 a0ee9e402..55c15c003 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 @@ -206,11 +206,11 @@ class CalDAVHelper(val context: Context) { val originalInstanceTime = cursor.getLongValue(CalendarContract.Events.ORIGINAL_INSTANCE_TIME) val reminders = getCalDAVEventReminders(id) - if (startTS.toString().length == 13) { + if (startTS.toString().length == 12 || startTS.toString().length == 13) { startTS /= 1000L } - if (endTS.toString().length == 13) { + if (endTS.toString().length == 12 || endTS.toString().length == 13) { endTS /= 1000L }