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

From: Date: Sat, 14 Mar 2009 22:06:25 +0000
Subject: Bug #13865 [Asn]: One-hour-shift in Christian driver
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-185@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: jan@horde.org Reported By: jan at horde dot org Summary: One-hour-shift in Christian driver Status: Assigned Type: Bug Package: Date_Holidays Package Version: 0.19.1 PHP Version: Irrelevant Assigned To: kguest Roadmap Versions: New Comment: The udpated patch is without the changes for bug #16021, and against the latest CVS. Previous Comments: ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ [2008-08-23 12:51:35] yunosh Eh, you have confirmed that you can reproduce it, in your comment from May 23. Do you say that your test suite reports something different now than then? ------------------------------------------------------------------------ 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 (#185) next »