Apr

13

You may have your web server located in the US or UK, but the target audience might be in elsewhere around the world. And I am sure you want the set local timezone instead of using the server’s timezone. For instance, place the following code in the htaccess file, This will allow PHP to out put current Chicago time instead of the server’s time.


SetEnv TZ America/Chicago

A list of timezones could be found at: http://us2.php.net/manual/en/timezones.php



Similar Posts

Comments

Name (required)

Email (required)

Website

Speak your mind

1 Comment so far

  1. jakub88 on July 1, 2008 10:13 am

    this is a really great tutorial!

Sponsors




Links