开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜