Jump to content

Time Display


son

Recommended Posts

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

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...