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 Link to comment https://forums.phpfreaks.com/topic/94394-timezones/ 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 Link to comment https://forums.phpfreaks.com/topic/94394-timezones/#findComment-483466 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 Link to comment https://forums.phpfreaks.com/topic/94394-timezones/#findComment-483524 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.