function visitors_timezone_diff in Visitors 7.0
Same name and namespace in other branches
- 8.2 visitors.module \visitors_timezone_diff()
- 8 visitors.module \visitors_timezone_diff()
- 7.2 visitors.module \visitors_timezone_diff()
- 7 visitors.module \visitors_timezone_diff()
Get difference in seconds user timezone and GMT.
Return value
int
4 calls to visitors_timezone_diff()
- visitors_get_from_timestamp in forms/
date_filter.inc - Convert from date value to timestamp.
- visitors_get_to_timestamp in forms/
date_filter.inc - Convert to date value to timestamp.
- visitors_mysql_date_format_sql in ./
visitors.module - Set date format for mysql sql query.
- visitors_pgsql_date_format_sql in ./
visitors.module - Set date format for pgsql sql query.
File
- ./
visitors.module, line 268
Code
function visitors_timezone_diff() {
$timezone = visitors_get_timezone();
return timezone_offset_get(timezone_open($timezone), date_create());
}