function visitors_get_mysql_current_timezone in Visitors 8
Same name and namespace in other branches
- 8.2 visitors.module \visitors_get_mysql_current_timezone()
- 7.2 visitors.module \visitors_get_mysql_current_timezone()
- 7 visitors.module \visitors_get_mysql_current_timezone()
- 7.0 visitors.module \visitors_get_mysql_current_timezone()
Get value of MySQL system variable time_zone.
Return value
string
1 call to visitors_get_mysql_current_timezone()
- visitors_mysql_date_format_sql in ./
visitors.module - Set date format for mysql sql query.
File
- ./
visitors.module, line 239
Code
function visitors_get_mysql_current_timezone() {
$query = 'SHOW variables LIKE \'time_zone\'';
return db_query($query)
->fetchField(1);
}