How can i get current timezone in mysql .
Asked
Active
Viewed 1,667 times
0
-
1possible duplicate of http://stackoverflow.com/questions/2934258/how-do-i-get-the-current-time-zone-of-mysql – Shakti Singh Jan 31 '11 at 11:58
2 Answers
0
May be i'm don't undestand question but... http://dev.mysql.com/doc/refman/5.5/en/time-zone-support.html

Alexey Sviridov
- 3,360
- 28
- 33
0
It's the first (and only) column of the first (and only) row of the result of this SELECT query:
SELECT @@global.time_zone;
If you want the session time zone you can use:
SELECT @@session.time_zone;
The result is like this:
mysql> SELECT @@global.time_zone; +--------------------+ | @@global.time_zone | +--------------------+ | Europe/Paris | +--------------------+ 1 row in set (0.00 sec)

David Veszelovszki
- 2,574
- 1
- 24
- 23