Fix stringToLocalDate for non-GMT timezones

This commit is contained in:
Antonin Delpeuch 2018-12-02 17:09:03 +09:00
parent 44c43253a1
commit cf58092f2d

View File

@ -229,7 +229,8 @@ public class ParsingUtilities {
if (parsed == null) {
return null;
}
return parsed.toLocalDateTime();
return parsed.withOffsetSameInstant(OffsetDateTime.now().getOffset())
.toLocalDateTime();
}
static public String instantToString(Instant instant) {