|
|||
|
After upgrading to version 1.5.2, the following code no longer works:
Code: $pDate = new Zend_Date(strtotime("07/15/2008")); echo "before adding 1 month: " .$pDate.PHP_EOL; $pDate->addMonth(1); echo "after adding 1 month: " .$pDate.PHP_EOL; Output: before adding 1 month: Jul 15, 2008 12:00:00 AM after adding 1 month: Aug 1, 2008 12:00:00 AM Using version 1.0.3: Output: testing method addMonth before adding 1 month: Aug 15, 2008 12:00:00 AM after adding 1 month: Sep 15, 2008 12:00:00 AM Version 1.5.2 appears to be truncating to the month. What am I doing wrong? Last edited by cnemelka : 07-16-2008 at 09:51 PM. Reason: add information |
|
|||
|
There was a bug pre-1.5.3 related to timezone and adding months which had this effect.
It is already fixed... try trunk, 1.5.3 or 1.6
__________________
Greetings Thomas Weidner I18N Team Leader, Zend Framework http://www.thomasweidner.com |
![]() |
| Thread Tools | |
| Display Modes | |
|
|