function date_default_timezone_object in Date 7
Same name and namespace in other branches
- 7.3 date_api/date_api.module \date_default_timezone_object()
- 7.2 date_api/date_api.module \date_default_timezone_object()
A timezone object for the default timezone.
Return value
a timezone name Identify the default timezone for a user, if available, otherwise the site.
5 calls to date_default_timezone_object()
- DateObject::__construct in date_api/
date_api.module - Overridden constructor.
- date_iso_week_range in date_api/
date_api.module - Start and end dates for an ISO week.
- date_repeat_rrule_description in date_repeat/
date_repeat.module - Build a description of an iCal rule.
- date_views_filter_handler::default_value in date_views/
includes/ date_views_filter_handler.inc - date_week_range in date_api/
date_api.module - Start and end dates for a calendar week, adjusted to use the chosen first day of week for this site.
File
- date_api/
date_api.module, line 1321 - 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_object($check_user = TRUE) {
$timezone = date_default_timezone($check_user);
return timezone_open(date_default_timezone($check_user));
}