Modifying the PHP Timezone using htaccess

Some software may require the PHP Directive "date.timezone" to be set. It is not set globally on our systems as to not override custom values.
To modify the timezone, modify your .htaccess file in either your home directory or the public_html folder, and add the below directive. Replace the Region/Zone with the time zone you wish to use.

php_value date.timezone 'Region/Zone'

For a complete list of available time zones, please see the PHP Documentation:

  • date.timezone, php timezone, timezone, htaccess timezone, date/time php
  • 0 Users Found This Useful
Was this answer helpful?