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