Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem with time_zone system variable

1 view
Skip to first unread message

Shaukat Mahmood Ahmad

unread,
May 13, 2015, 12:01:39 PM5/13/15
to
Hi All,

Within my custom storage engine, I want to get time zone of client
machine from where I received current query, I am using following code
but it does not return any thing.


THD* thd = this->ha_thd();
system_variables sys_vars = thd->variables;

bool time_zone_used = thd->time_zone_used;

Time_zone* timezone = sys_vars.time_zone;
const char* name = timezone->get_name()->ptr(); // Unhandled exception


Can anyone help me how can I get system (MySQL server machine) and
session (mysql client machine) time zone information?


Regards,
SMA

--
MySQL Internals Mailing List
For list archives: http://lists.mysql.com/internals
To unsubscribe: http://lists.mysql.com/internals

0 new messages