The server time zone value 'Hora de verano GMT' is unrecognized
Publicado por Javier (2 intervenciones) el 24/09/2018 12:17:15
Utilizo springboot, maven, connector: mysql-connector-java-8.0.11 en local, Sistema windows. Tengo este error
java.sql.SQLException: The server time zone value 'Hora de verano GMT' 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.
Como actualmente estoy en Irlanda, he puesto en my.ini default-time-zone = 'IST'
En spring boot @PostConstruct public void started(){ // Setting Spring Boot SetTimeZone TimeZone.setDefault(TimeZone.getTimeZone("IST")); }
En application properties spring.jpa.properties.hibernate.jdbc.time_zone = IST
Ningún cambio.
Gracias por vuestra ayuda
java.sql.SQLException: The server time zone value 'Hora de verano GMT' 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.
Como actualmente estoy en Irlanda, he puesto en my.ini default-time-zone = 'IST'
En spring boot @PostConstruct public void started(){ // Setting Spring Boot SetTimeZone TimeZone.setDefault(TimeZone.getTimeZone("IST")); }
En application properties spring.jpa.properties.hibernate.jdbc.time_zone = IST
Ningún cambio.
Gracias por vuestra ayuda
Valora esta pregunta
0