How to change the timezone for my account?

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 America/New_York, you should add this line to your .htaccess file:

SetEnv TZ America/New_York

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

A full list of the available timezones can be found at this URL.

Alternatively, you can use the PHP Variables Manager tool to set the date.timezone PHP variable to the one you need.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Leverage Browser Caching for Images, CSS and JS

To leverage your browser's caching generally means that you can specify how long browsers should...

Enable gZIP via .htaccess

To enable gZIP for your text, html, JavaScript, CSS and XML add these files to your .htaccess:...

Last-modified Header Explained

The last-modified header is an HTTP header that tells your browser when was the last time the...

How to change my document root folder using an .htaccess file?

By default your website is loaded from the public_html folder of your account. The public_html...

How to enable Mod_Gzip

Mod_Gzip is an external extension module for Apache 1.3 web servers implemented to help with size...