function _archive_get_timezone in Archive 7.2
Same name and namespace in other branches
- 5 archive.module \_archive_get_timezone()
- 6 archive.module \_archive_get_timezone()
- 7 archive.module \_archive_get_timezone()
Determine timezone to use for the dates (from format_date).
Return value
Timezone offset to use in time operations.
1 call to _archive_get_timezone()
- _archive_date in ./
archive.module - Parses the current URL and populates an archive date object.
File
- ./
archive.module, line 286 - Implements a block and page showing an archive of all site content.
Code
function _archive_get_timezone() {
global $user;
if (variable_get('configurable_timezones', 1) && $user->uid && drupal_strlen($user->timezone)) {
return $user->timezone;
}
else {
return variable_get('date_default_timezone', 0);
}
}