From 7549b7c06e3c08ed9aa5c9c55641b15abc85968f Mon Sep 17 00:00:00 2001 From: Frode Carlsen Date: Wed, 15 Apr 2020 19:31:58 +0200 Subject: [PATCH] fix: bruk props fra entitymanagerfactory istdf --- .../felles/prosesstask/impl/TaskManagerRepositoryImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/task/src/main/java/no/nav/vedtak/felles/prosesstask/impl/TaskManagerRepositoryImpl.java b/task/src/main/java/no/nav/vedtak/felles/prosesstask/impl/TaskManagerRepositoryImpl.java index 570f066..e951d48 100644 --- a/task/src/main/java/no/nav/vedtak/felles/prosesstask/impl/TaskManagerRepositoryImpl.java +++ b/task/src/main/java/no/nav/vedtak/felles/prosesstask/impl/TaskManagerRepositoryImpl.java @@ -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);