You can set a specific timezone for a PHP script using the following function which should be added to the PHP file:
putenv(“TZ=Asia/Singapore”);
You should simply replace “Asia/Singapore” with the desired timezone.
The full list of supported timezones from this URL : https://www.php.net/manual/en/timezones.php.