son Posted October 5, 2011 Share Posted October 5, 2011 I am confused here about the hour value in displayed date from timestamp I retrieve from db. To display date I use the following date_default_timezone_set('GTM'); $rDate=date("d.m.Y, G:i", $rDate);echo $rDate; The hour is wrong, it is one hour too late. Why could that be? I used a date/time to timestamp converter for values in db, so this should be fine (also when I use converter the other way round works just fine)... Son Link to comment Share on other sites More sharing options...
thescientist Posted October 5, 2011 Share Posted October 5, 2011 are you aware that military (24H) time starts at 0 and ends at 23? Link to comment Share on other sites More sharing options...
Ingolme Posted October 5, 2011 Share Posted October 5, 2011 Did you mean GMT? You have GTM in your code. Link to comment Share on other sites More sharing options...
son Posted October 9, 2011 Author Share Posted October 9, 2011 My word. GTM was the issue... I looked at this bit over and over again and did not spot the mistake|-) Cheers, appreciate your input:-) 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.