OPENJPA-2713 fix wrong offset after daylight saving switched

This commit is contained in:
Mark Struberg 2019-03-31 22:32:17 +02:00
parent 31c0450562
commit acf78d8091
1 changed files with 1 additions and 1 deletions

View File

@ -825,7 +825,7 @@ public class DBDictionary
*/
public OffsetDateTime getOffsetDateTime(ResultSet rs, int column) throws SQLException {
Timestamp tst = rs.getTimestamp(column);
return tst != null ? tst.toLocalDateTime().atOffset(OffsetDateTime.now().getOffset()) : null;
return tst != null ? tst.toLocalDateTime().atZone(ZoneId.systemDefault()).toOffsetDateTime() : null;
}
private ProxyManager getProxyManager() {