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 Quote 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") Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/130766-solved-time-difference/#findComment-678667 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.