Browse DateIndex Broken for edge cases, displays wrong date
Bug #727981 reported by
Elizabeth Leddy
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 2 |
Fix Released
|
Low
|
Unassigned |
Bug Description
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
Changed in zope2: | |
importance: | Undecided → Low |
status: | New → Confirmed |
To post a comment you must log in.
Elizabeth-
Thanks for posting - I just ran into the bug too, saw a few very old posts about it and am surprised it isn't yet fixed. I think this version may be slightly more accurate.
Jim