1. Home
  2. Knowledge Base
  3. Website
  4. Website Tips
  5. 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.

Related Articles

Need Support?
Can't find the answer you're looking for?
Contact Support