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

Issue Type: Bug Created: 2012-03-27T11:47:26.000+0000 Last Updated: 2012-03-27T15:40:52.000+0000 Status: Open Fix version(s): Reporter: Michal Novotny (clime) Assignee: Thomas Weidner (thomas) Tags: - Zend_Date

Related issues: Attachments:


<pre class="highlight">

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;

<pre class="highlight">

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

<pre class="highlight">

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").


Posted by Frank Br├╝ckner (frosch) on 2012-03-27T15:40:52.000+0000

Code tags added.

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.