Adjusting Server Time in PHP

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"

Change this line "America/Indiana/Indianapolis"

to any one from the list below

Eastern Time    America/New_York
Central Time     America/Chicago
Mountain Time  America/Denver
Mountain Time (no DST) America/Phoenix
Pacific Time      America/Los_Angeles
Alaska Time      America/Anchorage
Hawaii-Aleutian America/Adak
Hawaii-Aleutian Time (no DST) Pacific/Honolulu

  • 0 Users Found This Useful
Was this answer helpful?

Powered by WHMCompleteSolution