Quantcast
Channel: MySQL Forums - Connector/J, JDBC and Java
Viewing all articles
Browse latest Browse all 884

The mysql connector (JAVA) time zone is faulty (2 replies)

$
0
0
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

Viewing all articles
Browse latest Browse all 884

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>