jeff5656 Posted May 5, 2010 Share Posted May 5, 2010 My server is 3 hours behind in another time zone. Does anyone know how I can adjust this code so that $d is +3 hours ahead? $d= date("Y-m-d H:i:s"); Echo $d; Link to comment https://forums.phpfreaks.com/topic/200830-adjust-the-time-ahead-3-hours/ Share on other sites More sharing options...
Garethp Posted May 5, 2010 Share Posted May 5, 2010 $now = time(); $3days = $now + 60*60*24*3; $d= date("Y-m-d H:i:s", $3days); Echo $d; Link to comment https://forums.phpfreaks.com/topic/200830-adjust-the-time-ahead-3-hours/#findComment-1053772 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.