Hi Aymeric, On 12 September 2013 18:16, Aymeric Augustin <[email protected]> wrote: > Can you confirm that your project has the USE_TZ setting set to True?
Yes, USE_TZ is True, pytz is installed, and default timezone is set to UTC. > I believe I introduced it with a patch that made the date lookups (__year, > __month, __day, __week_day) take the time zone into account. Previously they > would consider the date in UTC when USE_TZ = True, which returned incorrect > results. Since this was a bugfix, I didn't mention it in the release notes. > > The problem probably affects all four date lookups. If you have time to test > this, it would help. I've tried the lookups on a new mysql installation (no tzinfo loaded), and '__month', '__day', and '__week_day' lookups all cause an empty queryset to be returned. However, '__year' does appear to return the correct results. Thanks for investigating. -- Matt -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-developers. For more options, visit https://groups.google.com/groups/opt_out.
