For the people who did upgrade to spring 3, you can revert old behaviour for time with this config; spring.jpa.properties.hibernate.jdbc.timezone.default_storage: normalize
@faisalsal12 жыл бұрын
You forgot to mention the Data Type of the Table column where you intend to store the ZonedDateTime Value :(
@zigzag23412 жыл бұрын
What a stupid mess with all this classes. How Jesus Crist i should write hibernate entities ? Should i use Date/Instant/OffsetDateTime for my datetime field or what ? Can't find normal answer, everybody write a lot of words but nobody can answer how to write simple program and not to have headache about all this timezones. Now we use plain Date class and i'm not sure when hibernate or jpa punch me in nose because of different timezone processing (when i compare date param and NOW() it goes weird, i understand why, but it too complex to maintain).