Try this:
<property name="connection.url">jdbc:mysql://localhost:3306/mydatabase?useSSL=false</property>
<property name="connection.serverTimezone">UTC</property>
<property name="connection.useLegacyDatetimeCode">false</property>
Try this:
<property name="connection.url">jdbc:mysql://localhost:3306/mydatabase?useSSL=false</property>
<property name="connection.serverTimezone">UTC</property>
<property name="connection.useLegacyDatetimeCode">false</property>