mirror of https://github.com/apache/openjpa.git
OPENJPA-2713 fix wrong offset after daylight saving switched
This commit is contained in:
parent
31c0450562
commit
acf78d8091
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue