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"

A full list of available locations and time zones is available on php.net at http://php.net/manual/en/timezones.php
  • 153 Users Found This Useful
Was this answer helpful?

Related Articles

How do I order an IP address?

Due to the Global IP Address shortage and strict ARIN IP justification guidelines, we no longer...

Do you offer Domain Reseller Accounts for Resellers?

We do not directly offer domain reseller accounts however you can receive your own domain...

Setting PHP Environment Variables

To set custom PHP Environment Variables such as register_globals, display_errors,...

Can you enable "local-infile" for MySQL please?

Unfortunately this is an option that we will not enable in any of our shared environments such as...

Ordering Hosting - Domain Registration and Transfer Options

When ordering a hosting plan you will be given 3 options:   Register a new domain. Transfer...