We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d27db22 commit cda2cfeCopy full SHA for cda2cfe
hibernate-reactive-core/src/test/java/org/hibernate/reactive/UTCTest.java
@@ -25,6 +25,8 @@
25
import javax.persistence.GeneratedValue;
26
import javax.persistence.Id;
27
28
+import org.hibernate.cfg.AvailableSettings;
29
+import org.hibernate.cfg.Configuration;
30
31
import org.junit.Test;
32
@@ -39,6 +41,13 @@ protected Collection<Class<?>> annotatedEntities() {
39
41
return List.of( Thing.class );
40
42
}
43
44
+ @Override
45
+ protected Configuration constructConfiguration() {
46
+ final Configuration configuration = super.constructConfiguration();
47
+ configuration.setProperty( AvailableSettings.JDBC_TIME_ZONE, "UTC" );
48
+ return configuration;
49
+ }
50
+
51
@Test
52
public void testDate(TestContext context) {
53
thing.date = Calendar.getInstance( TimeZone.getTimeZone( "UTC" ) )
0 commit comments