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
  • shared hosting, Hosting, linux shared hosting, windows shared hosting, top wave hosting, free wave hosting, 99rupees hosting, Hosting India
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Enabling SSH Access on Cloud Shared Hosting

Cloud HostingSecure Shell (SSH) Access is available free of charge on all cloud hosting...

Generating and Downloading a Full cPanel Backup

We suggest that you always have at least one copy of your data downloaded.  How often you'll want...

How do I choose a new PHP version?

From time to time your website may display a warning about the PHP version being out of date....

How do I order an IP address?

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

How hard is it to upgrade my plan and is there a fee?

Upgrading your plan is as easy as contacting support and requesting the upgrade.  We will handle...