do not use withZoneRetainFields when parsing dates, should fix off-by-day
This commit is contained in:
parent
726bb1f142
commit
37c86400d4
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue