fix #683, properly handle timestamp value begining with a space
This commit is contained in:
parent
5e7be876e5
commit
88586d509a
|
@ -194,7 +194,7 @@ class IcsImporter(val activity: SimpleActivity) {
|
||||||
private fun getTimestamp(fullString: String): Long {
|
private fun getTimestamp(fullString: String): Long {
|
||||||
return try {
|
return try {
|
||||||
if (fullString.startsWith(';')) {
|
if (fullString.startsWith(';')) {
|
||||||
val value = fullString.substring(fullString.lastIndexOf(':') + 1)
|
val value = fullString.substring(fullString.lastIndexOf(':') + 1).replace(" ", "")
|
||||||
if (!value.contains("T")) {
|
if (!value.contains("T")) {
|
||||||
curFlags = curFlags or FLAG_ALL_DAY
|
curFlags = curFlags or FLAG_ALL_DAY
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue