开发者

how to set for system's timezone with mysql timezone?

开发者 https://www.devze.com 2023-04-12 16:36 出处:网络
When I used for below function, SELECT timediff( now() , convert_tz( now() , @@session.time_zone ,\'+00:00\')) ;

When I used for below function,

SELECT timediff( now() , convert_tz( now() , @@session.time_zone ,'+00:00')) ;

it shows -07:00:00

also the NOW() shows datetime different t开发者_开发问答han my system's datetime.

also with SHOW VARIABLES LIKE '%time_zone%' it shows,

Variable_name        Value 
system_time_zone     MST
time_zone            SYSTEM

How can I set for that, so that it does not conflict on insertion of entry in my database regarding date?


Here is a good link to what you want:

http://support.modwest.com/content/6/256/en/how-do-i-change-mysql-timezone.html

Hope this helps.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号