timmah1 Posted October 30, 2008 Share Posted October 30, 2008 On a site I did, the company is located in Arizona, and they host through Network Solutions, which I see are in Virgina. Different time zones. I need to display the local time (which is Arizona) from this code $formatted = date("F j, Y h:i a", strtotime($row['date'])); How would I make this code show -3 hours? Thanks in advance Link to comment https://forums.phpfreaks.com/topic/130766-solved-time-difference/ Share on other sites More sharing options...
JonnoTheDev Posted October 30, 2008 Share Posted October 30, 2008 Add into your strtotime() function strtotime($row['date']." -3 hours") Link to comment https://forums.phpfreaks.com/topic/130766-solved-time-difference/#findComment-678666 Share on other sites More sharing options...
timmah1 Posted October 30, 2008 Author Share Posted October 30, 2008 I knew I had to add -3 somewhere, just wasn't sure where. Thank you Link to comment https://forums.phpfreaks.com/topic/130766-solved-time-difference/#findComment-678667 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.