set time 1:00 to imported all-day events to avoid some issues

This commit is contained in:
tibbi
2017-02-05 20:31:41 +01:00
parent feed23017c
commit 5bfd2cc0b9

View File

@@ -86,7 +86,7 @@ class IcsParser {
curFlags = curFlags or FLAG_ALL_DAY curFlags = curFlags or FLAG_ALL_DAY
val value = fullString.substring(fullString.lastIndexOf(':') + 1) val value = fullString.substring(fullString.lastIndexOf(':') + 1)
val dateTimeFormat = DateTimeFormat.forPattern("yyyyMMdd") val dateTimeFormat = DateTimeFormat.forPattern("yyyyMMdd")
return dateTimeFormat.parseDateTime(value).seconds() return dateTimeFormat.parseDateTime(value).withHourOfDay(1).seconds()
} else { } else {
val digitString = fullString.substring(1).replace("T", "").replace("Z", "") val digitString = fullString.substring(1).replace("T", "").replace("Z", "")
val dateTimeFormat = DateTimeFormat.forPattern("yyyyMMddHHmmss") val dateTimeFormat = DateTimeFormat.forPattern("yyyyMMddHHmmss")