function date_default_timezone in Date 6
Same name and namespace in other branches
- 5.2 date_api.module \date_default_timezone()
- 6.2 date_api.module \date_default_timezone()
- 7.3 date_api/date_api.module \date_default_timezone()
- 7 date_api/date_api.module \date_default_timezone()
- 7.2 date_api/date_api.module \date_default_timezone()
A timezone object for the default timezone.
Return value
a timezone name Identify the default timezone for a user, if available, otherwise the site.
2 calls to date_default_timezone()
- date_week_range in ./
date_api.module - Start and end dates for a calendar week, adjusted to use the chosen first day of week for this site.
- theme_date_format_interval in date/
date.theme - Theme a format interval for a date element
3 string references to 'date_default_timezone'
- date_timezone_cron in date_timezone/
date_timezone.module - Update the site timezone offset when cron runs.
- date_timezone_requirements in date_timezone/
date_timezone.install - Implementation of hook_requirements(). Make sure a site timezone name has been selected.
- date_timezone_site_form in date_timezone/
date_timezone.module - Override form for the site timezone settings form. Display a list of timezone names instead of offsets and hide the offset value.
File
- ./
date_api.module, line 606 - This module will make the date API available to other modules. Designed to provide a light but flexible assortment of functions and constants, with more functionality in additional files that are not loaded unless other modules specifically include them.
Code
function date_default_timezone($check_user = TRUE) {
$timezone = date_default_timezone_name($check_user);
return timezone_open(date_default_timezone_name($check_user));
}