Date conversion

What’s wrong with this piece of code? Why is there a difference? I thought difference should be 0…

$s = 1288587600;
$t = date('Ymd\THis\Z', $s);
echo $s.' stored as '.$t.'<br>';
$x = strtotime($t);
echo 'Converted back '.$x.'. Difference is '.($x-$s).'<br>';


1288587600 stored as 20101101T060000Z
Converted back 1288591200. Difference is 3600

Sponsor our Newsletter | Privacy Policy | Terms of Service