Retrieve the default timezone.
| <?php echo date_default_timezone_get(); ?> |
The date_default_timezone_get() function returns the default timezone used by all date/time functions in the script.
| date_default_timezone_get() |
|
Return Value: |
Returns the timezone as a string. |
|
PHP Version: |
5.1+ |
|
PHP Changelog: |
In PHP 5.4, the TZ variable is no longer used to infer the timezone. |