Giriş
Açıklaması şöyle
As introduced by this post in the official Hibernate blog, since Hibernate 5.2.3 we can make use of the hibernate.jdbc.time_zone property to make the way dates are stored independent from the JVM’s default timezone.
Örnek
Şöyle yaparız
spring.jpa.properties.hibernate.jdbc.time_zone=UTC
Açıklaması şöyle
The spring.jpa.properties.hibernate.jdbc.time_zone property sets the default timezone to UTC to make it easier to handle timestamps across multiple timezones. For more details about handling timezones with Spring Boot, check out this article.
Hiç yorum yok:
Yorum Gönder