mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
fix #683, properly handle timestamp value begining with a space
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user