On 28 avr. 2012, at 07:56, Mike Yumatov wrote: >> They are in local time in the default time zone.
> Are you sure? Because if so, YearArchiveView is broken: it uses year lookup > (https://docs.djangoproject.com/en/1.4/ref/models/querysets/#year), which is > performed in UTC. Indeed, you're right, sorry. In fact a very similar problem was already fixed in the admin following #17830 [1]. I've reopened #18217 [2] for filtering ranges properly. In the current state the list of years, months, days in date_list may still be slightly off. That's in the realm of #17260 [3]. Best regards, -- Aymeric. [1] https://code.djangoproject.com/ticket/17830 [2] https://code.djangoproject.com/ticket/18217 [3] https://code.djangoproject.com/ticket/17260 -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.