fix #683, properly handle timestamp value begining with a space
This commit is contained in:
parent
5e7be876e5
commit
88586d509a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue