mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-17 12:20:51 +01:00
fix #1406, properly handle dashes at event dates at importing
This commit is contained in:
parent
d2be7701f0
commit
77cffa5c64
@ -97,7 +97,7 @@ class Parser {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun parseDateTimeValue(value: String): Long {
|
fun parseDateTimeValue(value: String): Long {
|
||||||
val edited = value.replace("T", "").replace("Z", "")
|
val edited = value.replace("T", "").replace("Z", "").replace("-", "")
|
||||||
return if (edited.length == 14) {
|
return if (edited.length == 14) {
|
||||||
parseLongFormat(edited, value.endsWith("Z"))
|
parseLongFormat(edited, value.endsWith("Z"))
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user