Submit a Ticket
Support Center » Knowledgebase » Web Server (Apache + IIS) » Setting Date_Timezone for PHP (Cpanel)

Setting Date_Timezone for PHP (Cpanel)

If your account is hosted either on mocha4000.mochahost.com or mocha3005.mochahost.com, 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: 

http://www.php.net/manual/en/timezones.php




 


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.


 This answer was helpful  This answer was not helpful
 Back