Skip to content

Commit 48c076b

Browse files
committed
Fix bug in MySQL jdbc url
1 parent 69b8688 commit 48c076b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • jpa/helloworld/hibernate/JPAWithHibernate5/src/main/resources/META-INF

jpa/helloworld/hibernate/JPAWithHibernate5/src/main/resources/META-INF/persistence.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<properties>
1313
<!-- The JDBC URL to the database instance -->
1414
<property name="javax.persistence.jdbc.url"
15-
value="jdbc:mysql://localhost:3306/javahelps?useSSL=false" />
15+
value="jdbc:mysql://localhost:3306/javahelps?useSSL=false&amp;useJDBCCompliantTimezoneShift=true&amp;useLegacyDatetimeCode=false&amp;serverTimezone=UTC" />
1616

1717
<!-- The database username -->
1818
<property name="javax.persistence.jdbc.user" value="root" />

0 commit comments

Comments
 (0)