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! Quote 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); Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/202973-increment-hour/#findComment-1063621 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.