Solucionado (ver solução)
Solucionado
(ver solução)
2
respostas

Error Timezone

Como faço para resolver esse erro:
ERROR: The server time zone value 'Hora oficial do Brasil' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support.

No persistence.xml já tentei usar "jdbc:mysql://localhost:3306/contas?useTimezone=true&serverTimezone=UTC"
mas não funcionou

Garanta sua matrícula hoje e ganhe + 2 meses grátis

Continue sua jornada tech com ainda mais tempo para aprender e evoluir

Quero aproveitar agora
2 respostas
solução!
<property key="hibernate.connection.url">jdbc:mysql://localhost:3306/contas?useTimezone=true&amp;serverTimezone=UTC</property>

Tenta dessa forma.
A princípio não havia funcionado, mas ai mudei para isso:
<property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/contas?useTimezone=true&amp;serverTimezone=UTC"/>
e funcionou