ZF-12507: Issue with Zend_Date() - Not showing correct year on 12/31/2012
Description
I am curious why I am having a problem with Zend_Date on 12/31/2012. Here is an example of what I did: vagrant@ibpPrecise64:~$ sudo date 123118002012.00 Mon Dec 31 18:00:00 UTC 2012
$broadcastDate = new Zend_Date();
$broadcastDate->setTimezone("America/Chicago");
echo $broadcastDate->get("YYYY-MM-dd") . "<br>";
echo date("Y-m-d");
The output of this was: 2013-12-31 2012-12-31
I tried the same scenario with 2011 and it seemed to work fine: vagrant@ibpPrecise64:~$ sudo date 123118002011.00 Sat Dec 31 18:00:00 UTC 2011 The output of this was: 2011-12-31 2011-12-31
Comments
Posted by Phil Seguin (pseguin@gmail.com) on 2013-01-15T17:57:41.000+0000
Also: Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-29-generic x86_64)
Posted by Frank Brückner (frosch) on 2013-01-15T18:36:55.000+0000
@Phil Please look at ZF-11992. Add comments or reopening the issue, if something is missing.