You are here

function date_default_timezone_object in Date 7.3

Same name and namespace in other branches
  1. 7 date_api/date_api.module \date_default_timezone_object()
  2. 7.2 date_api/date_api.module \date_default_timezone_object()

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 date_api/date_api.module
Constructs a date object.
date_context_date_condition::execute in date_context/plugins/date_context_date_condition.inc
date_iso_week_range in date_api/date_api.module
Calculates the 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_simple::date_default_value in date_views/includes/date_views_filter_handler_simple.inc
Helper function to find a default value.

... See full list

File

date_api/date_api.module, line 1993
This module will make the date API available to other modules.

Code

function date_default_timezone_object($check_user = TRUE) {
  return timezone_open(date_default_timezone($check_user));
}