karldesign Posted July 22, 2008 Share Posted July 22, 2008 Hello, Is there a way of forcing the date() function to show GMT time, instead of the server time? Cheers Quote Link to comment https://forums.phpfreaks.com/topic/116029-date-gmt/ Share on other sites More sharing options...
craygo Posted July 22, 2008 Share Posted July 22, 2008 There is a TimeZone setting in php.ini. But I am not sure if it will help. You may have to set up your own function to do it. Ray Quote Link to comment https://forums.phpfreaks.com/topic/116029-date-gmt/#findComment-596592 Share on other sites More sharing options...
karldesign Posted July 22, 2008 Author Share Posted July 22, 2008 If this helps, I have found out that there is a gmdate() function, identical to the date()... except it doesn't seem to take into account daylight savings time... I'll keep looking for a solution without having to custom build any functions. Quote Link to comment https://forums.phpfreaks.com/topic/116029-date-gmt/#findComment-596595 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.