ABHIONLINUX
Site useful for linux administration and web hosting

2009/08/20

Setting timezone using .htaccess

You may need to show the time in your website, but the server time zone may not match with your time zone. In this case, you can set your time zone by editing .htaccess file.

Open your .htaccess file and add the rule “SetEnv TZ location”

‘location’ is the specific timezone you want to set.

You can select your time zone from the list.
http://www.php.net/manual/en/timezones.php

No comments:

Post a Comment