Apr
13
Set Local Timezone Using htaccess
April 13, 2008 |
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
- Create Custom Error Pages Using htaccess PHP
- htaccess Explicitly Define Default Index File
- htaccess Require the www For Domain URL
- Block people from Certain URL Using htaccess
- Use htaccess for 404 Redirect
- Google Text Translation Using htaccess
- htaccess gzip for Faster Loading and Bandwidth Saving
- htaccess Remove the www From Domain URL
- Use htaccess to Fake Different File Extension
- htaccess Deny Diractory Access During a Specific Time
- Use htaccess with Site Maintenance Page
- htaccess Permanently redirect file or directory
- Use htaccess to Deny Access to hidden Files
- htaccess Limit the Number of Concurrent Visitors to your Website
- Use htaccess to Deny Access Directory Listing
- Apache htaccess Prevent Users from Uploading and Executing Files
- Useful mod_rewrite Resources
- Block IPs Using htaccess
- Force Files Like PDF Download using htaccess
- Remove File Extension Using htaccess
- htaccess Conditional Loop Redirect
- Deny Access to inc Files Using htaccess
Comments
1 Comment so far



































this is a really great tutorial!