skeemo Posted May 26, 2010 Share Posted May 26, 2010 I'm using... $today = date('m-d-u H:i'); My host server is in US Central time zone. I need to add an hour so it shows Eastern time. How can I do that? Thanks! Link to comment https://forums.phpfreaks.com/topic/202973-increment-hour/ Share on other sites More sharing options...
premiso Posted May 26, 2010 Share Posted May 26, 2010 You can use the timezone function date_ timezone_ set to set the correct timezone you want to use. Or just add 3600 seconds to the date: $today = date('m-d-u H:i', time()+3600); Link to comment https://forums.phpfreaks.com/topic/202973-increment-hour/#findComment-1063617 Share on other sites More sharing options...
skeemo Posted May 26, 2010 Author Share Posted May 26, 2010 Thanks! Works perfectly. Link to comment https://forums.phpfreaks.com/topic/202973-increment-hour/#findComment-1063621 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.