The problem is, that django translates infinity to the maximum allowed
timestamp of 9999-12-31 23:59:59 but timezone unaware. When Django tries
to make the timestamp timezone aware, it uses the local timezone as
default, which makes the timestamp in UTC larger than the maximum allowed
timestamp, throwing the Exception.
I would guess, that this only applies for Timezones east of UTC.
--
Ticket URL: <https://code.djangoproject.com/ticket/20926>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* stage: Unreviewed => Accepted
* needs_tests: => 0
* needs_docs: => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/20926#comment:1>
* type: Uncategorized => Bug
* component: Uncategorized => Database layer (models, ORM)
--
Ticket URL: <https://code.djangoproject.com/ticket/20926#comment:2>
* status: new => assigned
* owner: nobody => mburst
--
Ticket URL: <https://code.djangoproject.com/ticket/20926#comment:3>
* status: assigned => closed
* resolution: => needsinfo
Comment:
Please install pytz (as recommended by the docs) and check if the bug
still happens.
If it does, please reopen the ticket and provide a complete traceback.
--
Ticket URL: <https://code.djangoproject.com/ticket/20926#comment:4>