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
  • 152 Users Found This Useful
Was this answer helpful?

Related Articles

Help! I cannot access my cPanel, WHM, e-mail, SSH, etc...

All of our servers will automatically temporarily block you from any service you attempt to log...

MySQL Stored Procedures

All MDDHosting clients can use MySQL stored procedures and routines on their web hosting...

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...

How do I access my cPanel?

Accessing your cPanel directly You can get to your control panel by appending "/cpanel" on to...

PHP - Cannot modify header information - headers already sent by ...

This message means that your PHP script is sending data to the web browser before the headers and...