The date_default_timezone_get() function returns the default timezone used by date/time functions.
PHP date_default_timezone_get() Function has the following syntax.
date_default_timezone_get();
PHP date_default_timezone_get() Function returns the timezone as a string.
Return the default timezone:
<?php
echo date_default_timezone_get();
?>
The code above generates the following result.