#24076: Query may fail with pytz exception -------------------------------------+------------------------------------- Reporter: lvella | Owner: nobody Type: Bug | Status: new Component: Database layer | Version: 1.6 (models, ORM) | Severity: Normal | Resolution: Keywords: | Triage Stage: | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Changes (by aaugustin):
* needs_better_patch: => 0 * needs_tests: => 0 * needs_docs: => 0 Comment: That's the intended behavior -- Django won't guess what you mean if you pass invalid inputs. However, if #9596 gets fixed with the idea of comment 24, you will be able to run `Ticket.objects.filter(register_time__date__gte=day)`. Until then, you're stuck with comparing with an aware datetime object. See https://www.python.org/dev/peps/pep-0431/#ambiguous-times for why this is awfully complicated. -- Ticket URL: <https://code.djangoproject.com/ticket/24076#comment:1> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/064.e488b5a893df0606fa8a0fa927cb40e3%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.