Knowledgebase

Adjusting Server Time in PHP Print

  • shared hosting, Hosting, linux shared hosting, windows shared hosting, top wave hosting, free wave hosting, 99rupees hosting, Hosting India
  • 0


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

Was this answer helpful?
Back