Java - The server time zone value 'Hora de verano GMT' is unrecognized

 
Vista:
sin imagen de perfil
Val: 3
Ha aumentado su posición en 10 puestos en Java (en relación al último mes)
Gráfica de Java

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
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

The server time zone value 'Hora de verano GMT' is unrecognized

Publicado por juan (43 intervenciones) el 26/09/2018 00:51:01
Los problemas que yo he tenido con la zona horaria se me han arreglado poniendola en formato UTC:
https://www.timeanddate.com/time/map/
Espero que te sirva
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
sin imagen de perfil
Val: 3
Ha aumentado su posición en 10 puestos en Java (en relación al último mes)
Gráfica de Java

The server time zone value "Hora de verano GMT" is unrecognized

Publicado por Javier (2 intervenciones) el 26/09/2018 09:36:25
Gracias, He resuelto el problema aqui esta la respuesta

En application.properties he puesto eso:

1
2
3
4
5
6
spring.jpa.hibernate.ddl-auto=update
spring.datasource.url=jdbc:mysql://localhost:3306/basededatos?useSSL=false&useLegacyDatetimeCode=false&serverTimezone=UTC
spring.datasource.username=usurio
spring.datasource.password=password
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.jpa.database-platform=org.hibernate.dialect.MySQL5InnoDBDialect
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar