datetime mysql timezone code example
Example 1: set database timezone mysql
SET GLOBAL time_zone = '+8:00';
SET GLOBAL time_zone = 'Europe/Helsinki';
SET @@global.time_zone = '+00:00';
Example 2: mysql datetime with timezone offset
INSERT INTO table_name CONVERT_TZ(SUBSTR('2011-10-04 12:58:36 -0600',1,19),'+00:00',SUBSTR('2011-10-04 12:58:36 -0600',20));
Example 3: set database timezone mysql
# SET ON /etc/my.cnf
default-time-zone='+00:00'