0

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 than 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?

fedorqui
  • 275,237
  • 103
  • 548
  • 598
Heena
  • 754
  • 5
  • 18
  • 30

1 Answers1

1

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.

talha2k
  • 24,937
  • 4
  • 62
  • 81