ZF-12121: Zend_Date outputs wrong values on time-change day

Description



include 'Zend/Date.php';

shell_exec('sudo date --set="25 Mar 2012 12:00:00"'); date_default_timezone_set('Europe/Prague');

$date = new Zend_Date();

$date->set('00:01:00', Zend_Date::TIMES); $startDate = $date->get(Zend_Date::TIMESTAMP); echo 'start date: ' . date("j.n.Y H:i", $startDate) . PHP_EOL;

$date->set('23:59:00', Zend_Date::TIMES); $endDate = $date->get(Zend_Date::TIMESTAMP); echo 'end date: ' . date("j.n.Y H:i", $endDate) . PHP_EOL;


start date: 24.3.2012 23:01 end date: 24.3.2012 23:59


start date: 26.3.2012 00:01 end date: 26.3.2012 23:59 ```

I hope this won't be solved as my two previous documentation reports ("not a bug").

Comments

Code tags added.