1.20.x 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
- includes/
date.inc, line 812 - Date API functions and constants.
Code
function date_default_timezone_object($check_user = TRUE) {
return timezone_open(date_default_timezone($check_user));
}