add flag_all_day to imported events only when appropriate
This commit is contained in:
parent
68cfefe061
commit
b6806dfbe2
|
@ -118,8 +118,10 @@ class IcsImporter {
|
|||
private fun getTimestamp(fullString: String): Int {
|
||||
try {
|
||||
return if (fullString.startsWith(';')) {
|
||||
curFlags = curFlags or FLAG_ALL_DAY
|
||||
val value = fullString.substring(fullString.lastIndexOf(':') + 1)
|
||||
if (!value.contains("T"))
|
||||
curFlags = curFlags or FLAG_ALL_DAY
|
||||
|
||||
parseDateTimeValue(value)
|
||||
} else {
|
||||
parseDateTimeValue(fullString.substring(1))
|
||||
|
|
Loading…
Reference in New Issue