Jump to content

Timezone - how to set it to match mine?


fatmikey

Recommended Posts

I noticed my webhost company which is in a different time zone does not match my time zone.  This is annoying because when I run scripts on my web host machine and it sends back data including date and time it is 3 hours off. 

 

Any ideas on how I can change this?

 

Thanks.

FatMikey

Link to comment
https://forums.phpfreaks.com/topic/144854-timezone-how-to-set-it-to-match-mine/
Share on other sites

This is quite easy actually.

 

Open your .htaccess file and add the following line:

SetEnv TZ location

 

where location is the specific timezone you want to define.

 

A list of Supported Timezones can be found here:

http://www.php.net/manual/en/timezones.php

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.