I think this is a stupid question, but seems that I cannot find the answer.
I have this timestamp: 1295598602.
In my php script I have:
$date = date(‘Y-m-d’, 1295598602);
$hour = date(‘H’, 1295598602) . ‘:00’;
This returns:
Date: 2011-01-21
Hour: 03:00
Now I went to an online conversion site to test this. I used this one.
But it seems that for this timestamp value it is
Fri, 21 Jan 2011 08:30:02 GMT
Now, which one is correct?
Use correct timezone: