do not use withZoneRetainFields when parsing dates, should fix off-by-day

This commit is contained in:
tibbi 2018-01-09 17:25:31 +01:00
parent 726bb1f142
commit 37c86400d4
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ class Parser {
parseLongFormat(edited, value.endsWith("Z")) parseLongFormat(edited, value.endsWith("Z"))
} else { } else {
val dateTimeFormat = DateTimeFormat.forPattern("yyyyMMdd") val dateTimeFormat = DateTimeFormat.forPattern("yyyyMMdd")
dateTimeFormat.parseDateTime(edited).withZoneRetainFields(DateTimeZone.getDefault()).withHourOfDay(1).seconds() dateTimeFormat.parseDateTime(edited).withHourOfDay(5).seconds()
} }
} }