Setting Date_Timezone for PHP (Cpanel) Print

  • 0

If your account is hosted either on or, please follow the steps below on how to set your Date_Timezone for PHP:

Edit your .htaccess file via FTP or the File Manager within your Cpanel account.

Add the following line to the .htaccess file:

php_value date.timezone 'Region/Zone'

NOTE: Replace Region/Zone with your own time zone.

Save the changes to the .htaccess file and exit the text editor.

A list of Supported Timezones can be found here:


For all of our other servers, please follow the steps below:

1. Login to your CPanel.

2. Under the SOFTWARE section, choose Select PHP Version.

3. Click on Switch To PHP Options.

4. Under the date.timezone, type your time_zone in the tab and click Apply.

5. Once done, click Save to save your changes.

Was this answer helpful?

« Back