Adjusting server time in PHP

  Print
All of our servers are configured to Eastern Time by default. It is possible, however, for you to adjust the date for PHP and this is done via a php_value directive in your .htaccess file.

The line you place in your .htaccess file looks like this:

php_value date.timezone "America/Indiana/Indianapolis"

A full list of available locations and time zones is available on php.net at http://php.net/manual/en/timezones.php


Related Articles

Self-Hosted Help Desk Software by SupportPal.

Login

 
Forgot password?
Register now

Language