File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
hibernate-reactive-core/src/test/java/org/hibernate/reactive Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 25
25
import javax .persistence .GeneratedValue ;
26
26
import javax .persistence .Id ;
27
27
28
+ import org .hibernate .cfg .AvailableSettings ;
29
+ import org .hibernate .cfg .Configuration ;
28
30
29
31
import org .junit .Test ;
30
32
@@ -39,6 +41,13 @@ protected Collection<Class<?>> annotatedEntities() {
39
41
return List .of ( Thing .class );
40
42
}
41
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
+
42
51
@ Test
43
52
public void testDate (TestContext context ) {
44
53
thing .date = Calendar .getInstance ( TimeZone .getTimeZone ( "UTC" ) )
You can’t perform that action at this time.
0 commit comments