Zend Framework

Date Calculation Wrong

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 1.7.3, 1.8.0
  • Fix Version/s: 1.8.0
  • Component/s: Zend_Date
  • Labels:
    None

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.

Activity

Hide
Thomas Weidner added a comment -

fixed with r12989

Show
Thomas Weidner added a comment - fixed with r12989

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: