Why is the value set to 1 hour behind?
If Europe/Dublin or Europe/London is same offset as UTC, why is the value in db different to originating JVM value?
JVM: Europe/Dublin - TimeZone.getDefault().getID() or
JVM: Europe/London - TimeZone.getDefault().getID()
// LocalTime.ofInstant(now, Clock.systemDefaultZone().getZone())
01:32:13.283256
Which is same as UTC currently, no offset.
Time zone for JDBC connections set for Spring / Hibernate using the configuration property:
spring.jpa.properties.hibernate.jdbc.time_zone=UTC
Datebase query:
select * from item;
id | local_time
----+------------
1 | 00:32:13
local_time has time column type.
This is is reflecting the fact that in 1970 Dublin was UTC+1 all year.
From the europe file in the TZ database:
London has the same issue: