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
 
  • cpanel, hosting, Hosting India, domain
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

I lost or forgot my cPanel or WHM password - how can I reset it?

Resetting your cPanel password and finding your cPanel username is easy and can be handled...

Ordering Hosting - Domain Registration and Transfer Options

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

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

Setting PHP Environment Variables

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

Setting up Private Nameservers on a domain registered with Sun Server Hosting

The steps below outline the process for setting up private nameservers on a domain registered...