fix #776, fix repeating events from before 2001

This commit is contained in:
tibbi 2019-02-14 11:26:18 +01:00
parent ac0653de3a
commit 0c8fddd419
1 changed files with 2 additions and 2 deletions

View File

@ -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
}