From a43f493637f239dfe3079413e3c7bfee3f59d400 Mon Sep 17 00:00:00 2001 From: Kazuhiro Ito Date: Sat, 13 Mar 2021 15:53:49 +0900 Subject: [PATCH] fix commit 263dec79df20ea491a154808de9c68e0a06a5755 --- .../simplemobiletools/calendar/pro/helpers/CalDAVHelper.kt | 5 +---- 1 file changed, 1 insertion(+), 4 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 f00ce3da5..aab0321d4 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 @@ -245,7 +245,7 @@ class CalDAVHelper(val context: Context) { if (exdate.length > 8) { val lines = exdate.split("\n") for (line in lines) { - val dates = line.split(",") + val dates = line.split(",", ";") dates.filter { it.isNotEmpty() && it[0].isDigit() }.forEach { if (it.endsWith("Z")) { // convert for example "20190216T230000Z" to "20190217000000" in Slovakia in a weird way @@ -258,9 +258,6 @@ class CalDAVHelper(val context: Context) { var potentialTS = it.substring(0, 8) if (potentialTS.areDigitsOnly()) { event.repetitionExceptions.add(potentialTS) - } else if (it.contains(";")) { - potentialTS = it.substringAfter(";").substring(0, 8) - event.repetitionExceptions.add(potentialTS) } } }