- How to Set the PHP Timezone:
Â
- Open your php.ini file with the File Manager in cPanel
Â
- Add the following line of code to top of your php.ini file
Â
- date.timezone = "Asia/Singapore"
Â
- Replace "Asia/Singapore" with the timezone from here that corresponds to the time you want to display.
Â
- Once you have entered the desired timezone, click the Save Changes button to save the file.
Â
- Now, you can check your phpinfo.php page to verify the change took place.