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 access my cPanel?

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

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

ClipShare/phpMotion - Thumbnails generated but video not visible?

Q. I have configured the correct paths to ffmpeg and mencoder in my video sharing scripts, but it...

How do I download my copy of WHMCS?

To download your copy of WHMCS: Log into our support system at...

What are private nameservers and how do I set them up?

Private nameservers are just custom DNS and HOST records that point to our DNS Cluster IPs. ...