Skip to content

Commit

Permalink
fix timezone (i hope) in hibernate.cfg.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
foxstudent106239 committed Aug 21, 2024
1 parent bc4a72c commit b2d3dfa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/test/resources/hibernate.cfg.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<hibernate-configuration>
<session-factory>
<property name="connection.driver_class">com.mysql.cj.jdbc.Driver</property>
<property name="connection.url">jdbc:mysql://localhost:3307/test</property>
<property name="connection.url">jdbc:mysql://localhost:3307/test?serverTimezone=UTC</property>
<property name="connection.username">Mykhailo</property>
<property name="connection.password">root</property>
<property name="show_sql">true</property>
<property name="hbm2ddl.auto">create-drop</property>

<mapping class="mate.academy.domain.Movie"/>
</session-factory>
</hibernate-configuration>

Expand Down

0 comments on commit b2d3dfa

Please sign in to comment.