czukoman20 Posted March 5, 2008 Share Posted March 5, 2008 In a version lesser than 5.1.1 of php how do you change the timezone of the output time . Right now its defaulted to EST i want to change it to CST . How would i go about doing this <?php $date = date("l, F d, Y "); $time = date("g:i a T"); echo "$date $time"; ?> thats the code i have right now Quote Link to comment Share on other sites More sharing options...
KrisNz Posted March 5, 2008 Share Posted March 5, 2008 Here's a tutorial(of sorts) that has some code that should help. I thought that all you had to do was putenv("TZ=whatever") but apparently that doesn't always work. http://drakecms.sourceforge.net/index.php?option=content&id=32&Itemid=10 Either that, or demand an upgrade Quote Link to comment Share on other sites More sharing options...
czukoman20 Posted March 5, 2008 Author Share Posted March 5, 2008 aight i will give it a try Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.