Env
JVM: UTC
JDBC:serverTimezone=Asia/Shanghai (CST)
Mysql: UTC
When I use mysql-Connector -java version 8.0.32, I find that when I first query a LocalDateTime data, which is stored in mysql timestamp, the query will do time zone conversion. However, when I use the time zone converted data to update the mysql data directly, I do not do the time zone converted, so the data I update is 8h smaller than the original data
I didn't have this problem when I used version 8.0.22 or later
JVM: UTC
JDBC:serverTimezone=Asia/Shanghai (CST)
Mysql: UTC
When I use mysql-Connector -java version 8.0.32, I find that when I first query a LocalDateTime data, which is stored in mysql timestamp, the query will do time zone conversion. However, when I use the time zone converted data to update the mysql data directly, I do not do the time zone converted, so the data I update is 8h smaller than the original data
I didn't have this problem when I used version 8.0.22 or later