简体   繁体   中英

mysql query date erro

Why is the difference between the time of the database query and the result 13 hours?

在此处输入图像描述

Please check the timezone set in your DB configuration, I think it could be due to that, to check the timezone in mysql you can refer below documentation:

SELECT @@GLOBAL.time_zone, @@SESSION.time_zone;

https://dev.mysql.com/doc/refman/8.0/en/time-zone-support.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM