1 date.inc | 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.
File
- core/
includes/ date.inc, line 814 - Date API functions.
Code
function date_default_timezone_object($check_user = TRUE) {
return timezone_open(date_default_timezone($check_user));
}