#26842: SQLite3 backend raises error when reading tz-aware datetime value ----------------------------------------------+-------------------- Reporter: ryochiji | Owner: nobody Type: Uncategorized | Status: new Component: Database layer (models, ORM) | Version: 1.9 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 1 | UI/UX: 0 ----------------------------------------------+-------------------- When a DateTimeField in a sqlite3 backend contains a timezone-aware value, an error is raised when reading the object. This seems to happen because [https://github.com/django/django/blob/stable/1.9.x/django/db/backends/sqlite3/operations.py#L215 convert_datetimefield_value] doesn't check to make sure the value is naive before passing to make_aware, which [https://github.com/django/django/blob/stable/1.9.x/django/utils/timezone.py#L367 raises an error if it receives a tz-aware value].
-- Ticket URL: <https://code.djangoproject.com/ticket/26842> 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/051.a5558124d3413b536a09dbb437001704%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.