1. Home
  2. Help & Troubleshooting
  3. How to set the timezone for PHP in cPanel

How to set the timezone for PHP in cPanel

For shared hosting customers, you cannot modify the servers global timezone value but you can modify the timezone for PHP through your cPanel following the steps below.

Step 1:  Login to cPanel and click the Select PHP Version icon founder under the Software section.

Step 2:  Click the Options tab at the top of the screen to modify PHP options

Step 3:  Click the value next to date.timezone to edit the timezone setting.

Your changes will be saved automatically

An example value you could put in the field would be:  America/New_York

Note:

A list of available PHP timezones can be found here.

Updated on January 9, 2022

Was this article helpful?

Related Articles