fix #683, properly handle timestamp value begining with a space

This commit is contained in:
tibbi 2018-11-16 18:50:36 +01:00
parent 5e7be876e5
commit 88586d509a

View file

@ -194,7 +194,7 @@ class IcsImporter(val activity: SimpleActivity) {
private fun getTimestamp(fullString: String): Long {
return try {
if (fullString.startsWith(';')) {
val value = fullString.substring(fullString.lastIndexOf(':') + 1)
val value = fullString.substring(fullString.lastIndexOf(':') + 1).replace(" ", "")
if (!value.contains("T")) {
curFlags = curFlags or FLAG_ALL_DAY
}