function date_default_timezone_object

nittany7 date_api.module date_default_timezone_object($check_user = TRUE)
cis7 date_api.module date_default_timezone_object($check_user = TRUE)
mooc7 date_api.module date_default_timezone_object($check_user = TRUE)

Returns a timezone object for the default timezone.

Parameters

bool $check_user: (optional) Whether or not to check for a user-configured timezone. Defaults to TRUE.

Return value

object The default timezone for a user, if available, otherwise the site.

6 calls to date_default_timezone_object()
DateObject::__construct in modules/contrib/date/date_api/date_api.module
Constructs a date object.
date_context_date_condition::execute in modules/contrib/date/date_context/plugins/date_context_date_condition.inc
date_iso_week_range in modules/contrib/date/date_api/date_api.module
Calculates the start and end dates for an ISO week.
date_repeat_rrule_description in modules/contrib/date/date_repeat/date_repeat.module
Build a description of an iCal rule.
date_views_filter_handler_simple::date_default_value in modules/contrib/date/date_views/includes/date_views_filter_handler_simple.inc
Helper function to find a default value.

... See full list

File

modules/contrib/date/date_api/date_api.module, line 1763
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) {
  return timezone_open(date_default_timezone($check_user));
}