get gmt out from mysql code example
Example 1: how to set global time_zone in mysql
SET GLOBAL time_zone = timezone;
eg: SET GLOBAL time_zone = 'Asia/Kolkata';
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));