📜  intellij mysql 设置时区 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:04:57.484000             🧑  作者: Mango

代码示例1
value="jdbc:mysql://localhost:3306/dbname?serverTimezone=UTC"


in MYSQL do :(for french people, change the zone for u) 

SET GLOBAL time_zone = 'Europe/Paris';
SET time_zone = 'Europe/Paris';


+ see spring configuration : 
https://www.baeldung.com/mysql-jdbc-timezone-spring-boot