[zope2-tracker] [Bug 727981] [NEW] Browse DateIndex Broken for edge cases, displays wrong date
Elizabeth Leddy
727981 at bugs.launchpad.net
Wed Mar 2 14:25:18 EST 2011
Public bug reported:
Running 2.3.15
Test date: 2011-01-01
Part 1: Dates that are in the first month of the year (e.g. 2011-01-01) make the browse index page break because the modulo returns 0, which is then fed to DateTime and barfs.
Part 2: The year is incorrect for the same test date. I see the logic in how its being calculated and I think that this is a precision error, although I didn't spend a lot of time investigating and there is some dubiousness. I tested with a wide range though and the patch seems at least more correct than the current display value.
Patch for both issues will be attached
** Affects: zope2
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Zope 2
Developers, which is subscribed to Zope 2.
https://bugs.launchpad.net/bugs/727981
Title:
Browse DateIndex Broken for edge cases, displays wrong date
More information about the zope2-tracker
mailing list