1. Home
  2. Website
  3. How to change the timezone via .htaccess
  1. Home
  2. Website Tips
  3. How to change the timezone via .htaccess

How to change the timezone via .htaccess

You can change the timezone for your account or for a specific folder by adding this rule to your .htaccess file:

+++
SetEnv TZ Timezone
+++++

For example, if you wish to change the timezone to Asia/Singapore, you should add this line to your .htaccess file:

+++
SetEnv TZ Asia/Singapore
+++

This way your scripts will use your local time instead of the server time.

Was this article helpful?

Related Articles

Need Support?
Can’t find the answer you’re looking for? Don’t worry we’re here to help for 24X7!
Click here to talk us!

Leave a Comment