Spring Posted May 8, 2011 Share Posted May 8, 2011 want something like: date('F j, Y, g:i a') but in central timezone, how do I change the timezone to central? Quote Link to comment Share on other sites More sharing options...
xyph Posted May 8, 2011 Share Posted May 8, 2011 This may help http://www.php.net/manual/en/function.date-default-timezone-set.php Keep in mind, this is assuming the default timezone has been set up properly. I usually like to do this kind of stuff manually, as I don't like to rely on those kinds of server settings. Quote Link to comment Share on other sites More sharing options...
MadTechie Posted May 8, 2011 Share Posted May 8, 2011 Here is a little default timezone example echo date_default_timezone_get(); echo date('H:i:s'); date_default_timezone_set('GMT'); echo date_default_timezone_get(); echo date('H:i:s'); see all timezones here timezones 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.