Return to default time zone:
<?phpecho date_default_timezone_get();?>The date_default_timezone_get() function returns the default time zone used by all date/time functions in the script.
date_default_timezone_get();
Return value: | Returns the time zone as a string. |
---|---|
PHP version: | 5.1+ |
Update log: | Starting with PHP 5.4+, the time zone no longer obtains information from the operating system and the TZ variable is no longer used. |