note 82943 rejected from function.strtotime by nlopess

From: Date: Sun, 04 May 2008 14:32:18 +0000
Subject: note 82943 rejected from function.strtotime by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-139047@lists.php.net to get a copy of this message
Note Submitter: php at jensbeimsurfen dot de ---- I found a very strange behaviour in strtotime: <? echo strtotime("2008-03-30 1:00 Europe/Berlin +0min")."\n"; echo strtotime("2008-03-30 1:00 Europe/Berlin +60min")."\n"; echo strtotime("2008-03-30 1:00 Europe/Berlin +120min")."\n"; echo strtotime("2008-03-30 1:00 Europe/Berlin +180min")."\n"; echo strtotime("2008-03-30 1:00 Europe/Berlin +240min")."\n"; ?> The output is: 1206835200 1206838800 1206838800 1206842400 1206846000 There was a DST switch taking place, but 60min after 1:00 was not the same time than 120min after 1:00.... Is this a bug or some kind of undocumented "feature"?

« previous php.notes (#139047) next »