Date conversion

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

date_default_timezone_set('Europe/Berlin');
$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>';

Output:

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

Sponsor our Newsletter | Privacy Policy | Terms of Service