Probably linked to the fact that the DST in Paris is in october (Sunday
2019-10-27) while in others Timezones it is in November (Sunday
2019-03-11).
Bug maybe due to pytz ?
Bug maybe due to the way date_hierarchy calculates date range in
django/contrib/admin/views/main.py (lines 164-167)
{{{
elif month:
# In this branch, from_date will always be the first
of a
# month, so advancing 32 days gives the next month.
to_date = (from_date +
timedelta(days=32)).replace(day=1)
}}}
can be uncorrectly fixed by setting:
{{{
to_date = (from_date + timedelta(days=32, hours = XXX)).replace(day=1)
}}}
where XXX = 3 (or something like that)
--
Ticket URL: <https://code.djangoproject.com/ticket/30749>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by Carlton Gibson):
Duplicate of #29724.
--
Ticket URL: <https://code.djangoproject.com/ticket/30749#comment:1>
* status: new => closed
* resolution: => duplicate
--
Ticket URL: <https://code.djangoproject.com/ticket/30749#comment:2>
Comment (by yab):
Replying to [comment:2 Carlton Gibson]:
Hello, thanks for reading this ticket. It may be a different problem than
the #29724 ticket. I just told it to ahbk on github (/django/pull/10380).
--
Ticket URL: <https://code.djangoproject.com/ticket/30749#comment:3>
Comment (by Carlton Gibson):
Hi yab.
Seems similar enough: both have a incorrect result on the boundary
condition. If you can add a test case showing your particular case to the
other ticket, or the PR on GitHub, we can make sure that it passes for any
proposed solution. Happy to re-open a separate ticket if we can pin down
that there are actually two bugs, but it doesn't look that way with what
we have right now. (I think 🙂)
--
Ticket URL: <https://code.djangoproject.com/ticket/30749#comment:4>
Comment (by yab):
Hi Carlton,
Below ticket #29724, I just proposed two solutions to those two distinct
(I think) issues, one in templatestags/admin_list.py and one
views/mains.py.
Replying to [comment:4 Carlton Gibson]
--
Ticket URL: <https://code.djangoproject.com/ticket/30749#comment:5>
Comment (by felixxm):
That's rather a duplicate of #30922.
--
Ticket URL: <https://code.djangoproject.com/ticket/30749#comment:6>