Skip to content

Commit

Permalink
fix: bruk props fra entitymanagerfactory istdf
Browse files Browse the repository at this point in the history
  • Loading branch information
frode-carlsen committed Apr 15, 2020
1 parent 765172a commit 7549b7c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ void verifyStartup() {
.setParameter("inputTid", Timestamp.valueOf(now), TemporalType.TIMESTAMP)
.getSingleResult();

Object hibernateTz = entityManager.getProperties().get("hibernate.jdbc.time_zone");
Object hibernateTz = entityManager.getEntityManagerFactory().getProperties().get("hibernate.jdbc.time_zone");
String userTz = System.getProperty("user.timezone");
log.info("Startup: DB(tz={}, current_timestamp={}), App(user.timezone={}, hibernate.jdbc.time_zone={}, inputtid={}, inputtid2={}). Drift={}",
result.dbtz, result.dbtid, userTz, hibernateTz, result.inputtid, result.inputtid2,result.drift);
Expand Down

0 comments on commit 7549b7c

Please sign in to comment.