son Posted May 27, 2009 Share Posted May 27, 2009 I display data and time on new website as: date_default_timezone_set('GMT');$date = date('d.m.Y, H:i');echo "<span>" . $date . "</span>"; and just noticed that time is one hour early. This must have something to do with daylight saving, but when I incorporate I into my date function it just gives 0. How would you go ahead to display the correct time?Son Link to comment Share on other sites More sharing options...
Synook Posted May 27, 2009 Share Posted May 27, 2009 GMT doesn't have daylight saving - think of the political ramifications! If you use WET or another DS-abiding timezone I *think* it should change. Link to comment Share on other sites More sharing options...
AElliott Posted May 27, 2009 Share Posted May 27, 2009 Since you mention GMT being an hour too early, are you by chance looking for something like BST (British Summer Time)? The current UK timezone.EDIT: nevermind, just looked and WET seems to be the same thing Link to comment Share on other sites More sharing options...
son Posted May 28, 2009 Author Share Posted May 28, 2009 Since you mention GMT being an hour too early, are you by chance looking for something like BST (British Summer Time)? The current UK timezone.EDIT: nevermind, just looked and WET seems to be the same thing Thanks for both inputs. Just one more question: Will I need to change this to GMT once winter time starts again? Son Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.