|
Posted by Brian on 06/05/07 23:49
Hi
I have recently come across a problem with timestamps, it seems when using
the date function to return a formatted timestamp the result can depend on
what your server global time settings are E.G. summer time, GTM+1 etc.
It seems logic to me that if I say here is a timestamp please return a
formatted
time it shouldn't make any odds what the server is set to.
$datein = 1177891200;
$formatted_date = date("D j M y H:i:s a", $datein);
echo $formatted_date;
I make "Mon 30 Apr 07 00:00:00 am" if I set the server to
GTM and forget British summer time, so how do I know
which timestamp is correct? Can somebody tell me what time
they make 1177891200 to be
This has caused a lot of problem recently can somebody please explain
why this is, I quick answer would be very grateful
Brian
Navigation:
[Reply to this message]
|