ZF-12507: Issue with Zend_Date() - Not showing correct year on 12/31/2012

Issue Type: Bug Created: 2013-01-15T17:56:24.000+0000 Last Updated: 2013-01-15T18:36:55.000+0000 Status: Closed Fix version(s): Reporter: Phil Seguin ( Assignee: Frank Brückner (frosch) Tags: - Zend_Date

Related issues: - ZF-11992



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();
    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


Posted by Phil Seguin ( 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.

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.