From b6806dfbe28f3a17d80cafda8923dc8934af7376 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 23 Apr 2017 22:48:38 +0200 Subject: [PATCH] add flag_all_day to imported events only when appropriate --- .../com/simplemobiletools/calendar/helpers/IcsImporter.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/IcsImporter.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/IcsImporter.kt index 6bd4a4eec..924333244 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/IcsImporter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/IcsImporter.kt @@ -118,8 +118,10 @@ class IcsImporter { private fun getTimestamp(fullString: String): Int { try { return if (fullString.startsWith(';')) { - curFlags = curFlags or FLAG_ALL_DAY val value = fullString.substring(fullString.lastIndexOf(':') + 1) + if (!value.contains("T")) + curFlags = curFlags or FLAG_ALL_DAY + parseDateTimeValue(value) } else { parseDateTimeValue(fullString.substring(1))