Issues

ZF-5138: Date Calculation Wrong

Issue Type: Bug Created: 2008-12-02T09:04:21.000+0000 Last Updated: 2008-12-14T09:22:32.000+0000 Status: Resolved Fix version(s): - 1.8.0 (30/Apr/09)

Reporter: Florian Hoenig (flo) Assignee: Thomas Weidner (thomas) Tags: - Zend_Date

Related issues: Attachments:

Description

date_default_timezone_set('America/New_York');

$date1 = new Zend_Date('2008-11-20T17:36:43+00:00'); echo $date1->getIso(). "\n";

$date1->add(1, Zend_Date::MONTH); echo $date1->getIso() . "\n";

============ prints:

2008-11-20T17:36:43+00:00 2008-12-01T17:36:43+00:00

However, without the +00:00 it seems to work.

Comments

Posted by Thomas Weidner (thomas) on 2008-12-02T14:56:30.000+0000

fixed with r12989

Have you found an issue?

See the Overview section for more details.

Copyright

© 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.

Contacts