Change Timezone to My Location

From Lunarpages Web Hosting Wiki
Jump to: navigation, search

Q: How do I offset the Timezone for my location, instead of the server timezone?

A: Open your .htaccess file and add the following line:

SetEnv TZ 'location'

Where location is the specific timezone you want to define.

A list of supported Timezones can be found here:

http://www.php.net/manual/en/timezones.php

Share |
Want to read this in another language?