function _archive_get_timezone in Archive 5
Same name and namespace in other branches
- 6 archive.module \_archive_get_timezone()
 - 7.2 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 with the selected date information.
 
File
- ./
archive.module, line 188  
Code
function _archive_get_timezone() {
  global $user;
  if (variable_get('configurable_timezones', 1) && $user->uid && strlen($user->timezone)) {
    return $user->timezone;
  }
  else {
    return variable_get('date_default_timezone', 0);
  }
}