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 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 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. Link to comment https://forums.phpfreaks.com/topic/116029-date-gmt/#findComment-596595 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.