0

在我的数据库中,registration_time 设置为current_timestamp. 但是提前了7个小时。我该如何纠正?

4

1 回答 1

0

你实际的mysql时间和你的php不同

去检查

The current values of the global and client-specific time zones can be retrieved like this: 
mysql> SELECT @@global.time_zone, @@session.time_zone;

要为当前会话设置它,请执行以下操作:

SET time_zone = timezonename;

您还可以在此链接中找到有关时区设置的详细信息

于 2013-07-11T09:38:41.987 回答