UnixServerAdmin

Server Administration & Management

How to change TimeZone using .htaccess

As you know, the server hosted for your website’s time zone might not the time zone that you want as you might purchased a hosting server hosted somewhere from your location.

Hence it is important if you could define the timezone from the server setting instead of working on each of the script.

Although you set set it to by .htaccess file

Open up your .htaccess file, enter the command as below :-

================
SetEnv TZ location
================

The location indicate the timezone that you want to set, for more information on the location information, you may refer to the URL as below. “http://www.php.net/manual/en/timezones.php”

Advertisements

March 5, 2011 - Posted by | Apache, htaccess | , ,

2 Comments »

  1. Continue to write on this subject. Right now there is a higher demand than you may expect for this type of advice and assistance. What you reveal is useful to the person who is looking to get the tips that you’ve assembled.

    Comment by clean water | June 15, 2011 | Reply

  2. Thank you for exposing these details. I think it’s most beneficial certainly forward it to buddies, in addition. If you keep on publishing about this I definitely will carry on browsing your future content.

    Comment by amazing water blog | June 16, 2011 | Reply


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: