agravayne Posted August 6, 2007 Share Posted August 6, 2007 Hello, Does anyone know if there is a way to detect what the servers time zone is with PHP. What we have a is a outside service that returns a GMT time which I need to convert to the servers timezone. Many thanks Scott Quote Link to comment https://forums.phpfreaks.com/topic/63529-detect-server-time-zone/ Share on other sites More sharing options...
trq Posted August 6, 2007 Share Posted August 6, 2007 date_default_timezone_get(). Quote Link to comment https://forums.phpfreaks.com/topic/63529-detect-server-time-zone/#findComment-316620 Share on other sites More sharing options...
agravayne Posted August 6, 2007 Author Share Posted August 6, 2007 Hello thorpe, Thanks for this. I have misunderstood here. This works and tells me my time zone but not whether I am on BST (British Summer Time) or GMT. What I need is add an hour when we are in BST automatically. Cheers Scott Quote Link to comment https://forums.phpfreaks.com/topic/63529-detect-server-time-zone/#findComment-316623 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.