How to change date.timezone

You can modify different php settings for your account, using php.ini file. We recommend using our default php.ini file that is the most compatible with our servers and created specially to optimize the process of php values modification.  You can learn how to find and edit php.ini on our shared and business servers here:

1. How to edit php.ini file on shared servers with SuPHP module
 

2.   How to edit php.ini on business servers with FastSGI module

To change time zone or date, following values should be changed in your php.ini file:

date.timezone =



Note that "America/New_York" is set by default.

Put required value and click “Save Changes”.

You can find the list of time zones that can be set Here

If your account is hosted on a shared server, the suPHP configuration directive should be added to your .htaccess file to make these settings global for the entire account. You can find step-by-step instruction here

If your account is located on a business server, no other modifications should be applied.

 



  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

How to check PHP version and configuration

Phpinfo() function is commonly used to check the current state of PHP configuration. It can also...

How to use PHP Selector

In some cases correct functioning of your website depends on PHP version installed on the...

How to switch PHP version on shared servers

Our shared servers are set up to allow each customer to choose the PHP version to use for the...

SuPHP directive for php.ini on shared servers

SuPHP (Single user PHP) is a php handler, which executes PHP scripts with the permissions of...

How to switch PHP version on business servers

Our business servers are running with FSGI module and have PHP 5.2, 5.3, 5.4, 5.5 versions...

Powered by WHMCompleteSolution