Bug #13865 [Asn->Csd]: One-hour-shift in Christian driver

From: Date: Sun, 15 Mar 2009 23:15:01 +0000
Subject: Bug #13865 [Asn->Csd]: One-hour-shift in Christian driver
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-191@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=13865&edit=1 ID: 13865 Updated by: ken@linux.ie Reported By: jan at horde dot org Summary: One-hour-shift in Christian driver -Status: Assigned +Status: Closed Type: Bug Package: Date_Holidays Package Version: 0.19.1 PHP Version: Irrelevant Assigned To: kguest Roadmap Versions: New Comment: -Status: Assigned +Status: Closed This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. Previous Comments: ------------------------------------------------------------------------ [2009-03-14 22:06:25] yunosh The udpated patch is without the changes for bug #16021, and against the latest CVS. ------------------------------------------------------------------------ [2009-03-14 22:05:26] yunosh The following patch has been added/updated: Patch Name: addDays.patch URL: #patch bug:13865;patch:addDays.patch;revision:1237068326; ------------------------------------------------------------------------ [2009-03-11 15:53:30] yunosh The following patch has been added/updated: Patch Name: addDays.patch URL: #patch bug:13865;patch:addDays.patch;revision:1236786810; ------------------------------------------------------------------------ [2009-03-11 15:52:05] yunosh This happens because Date::addSpan() considers daylight saving times. This could easily worked around by using Date::addDays() instead, but this is only available with Date 1.5.0 which is still alpha by the time of this writing. The attached patch adds a _addDays() method to Date_Holidays_Driver which is a copy from Date's version. I only patched the Christian and Germany drivers so far, as a proof of concept. The patch also contains the changes for ticket #16021. ------------------------------------------------------------------------ [2009-02-16 13:43:05] yunosh If it is of any use: this behavior can be seen again at the moment, e.g. with the carnival related holidays. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://pear.php.net/bugs/bug.php?id=13865 -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=13865&edit=1

« previous php.pear.bugs (#191) next »