date_default_timezone_set

PHP 5 >= 5.1.0, PHP 7, PHP 8
date_default_timezone_set - Sets the default timezone used by all date/time functions in a script
Manual
Code Examples

Example #1 Getting the default timezone

PHP Version: