You might try ading this into Spring boot's application.yaml as shown here https://www.baeldung.com/mysql-jdbc-timezone-spring-boot
spring.jpa.properties.hibernate.jdbc.time_zone=UTC