--
Ticket URL: <https://code.djangoproject.com/ticket/26842>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* owner: nobody => kennethyang404
* needs_better_patch: => 0
* status: new => assigned
* needs_tests: => 0
* needs_docs: => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/26842#comment:1>
Comment (by kennethyang404):
SQLite doesn't support tz-aware datetimes.
--
Ticket URL: <https://code.djangoproject.com/ticket/26842#comment:2>
* status: assigned => closed
* resolution: => invalid
--
Ticket URL: <https://code.djangoproject.com/ticket/26842#comment:3>
Comment (by ryochiji):
I have a bit of code (a unit test) that works in Django 1.7 and 1.8, but
breaks in 1.9. Both 1.7 and 1.8 check the value to see if it's tz-naive
([https://github.com/django/django/blob/stable/1.7.x/django/db/backends/sqlite3/base.py#L52
here] and
[https://github.com/django/django/blob/stable/1.8.x/django/db/backends/sqlite3/utils.py#L9
here]) but not 1.9. Am I to interpret that this change in behavior is by
design?
--
Ticket URL: <https://code.djangoproject.com/ticket/26842#comment:4>
Comment (by kennethyang404):
I think an exception is the desired behavior when trying to read a tz-
aware value from a db that doesn't support timezone. Here are more info I
found about this change:
[https://github.com/django/django/blob/ec186572e6cfde4cd4bc1491ff552c5d32211d9f/docs/releases/1.9.txt#L421
here] and
[https://github.com/django/django/blob/ec186572e6cfde4cd4bc1491ff552c5d32211d9f/docs/releases/1.9.txt#L316
here]
Replying to [comment:4 ryochiji]:
> I have a bit of code (a unit test) that works in Django 1.7 and 1.8, but
breaks in 1.9. Both 1.7 and 1.8 check the value to see if it's tz-naive
([https://github.com/django/django/blob/stable/1.7.x/django/db/backends/sqlite3/base.py#L52
here] and
[https://github.com/django/django/blob/stable/1.8.x/django/db/backends/sqlite3/utils.py#L9
here]) but not 1.9. Am I to interpret that this change in behavior is by
design?
--
Ticket URL: <https://code.djangoproject.com/ticket/26842#comment:5>