0

How can i get current timezone in mysql .

skaffman
  • 398,947
  • 96
  • 818
  • 769
Durga Dutt
  • 4,093
  • 11
  • 33
  • 48

2 Answers2

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