mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
do not use withZoneRetainFields when parsing dates, should fix off-by-day
This commit is contained in:
@@ -83,7 +83,7 @@ class Parser {
|
||||
parseLongFormat(edited, value.endsWith("Z"))
|
||||
} else {
|
||||
val dateTimeFormat = DateTimeFormat.forPattern("yyyyMMdd")
|
||||
dateTimeFormat.parseDateTime(edited).withZoneRetainFields(DateTimeZone.getDefault()).withHourOfDay(1).seconds()
|
||||
dateTimeFormat.parseDateTime(edited).withHourOfDay(5).seconds()
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user