#18766: Models with datetime fields fail to save when date is below 1900 and 
USE_TZ
is True
-------------------------------------+-------------------------------------
     Reporter:  void                 |                    Owner:  aaugustin
         Type:                       |                   Status:  reopened
  Cleanup/optimization               |                  Version:  master
    Component:  Documentation        |               Resolution:
     Severity:  Normal               |             Triage Stage:  Accepted
     Keywords:  timezone, tz         |      Needs documentation:  0
    Has patch:  0                    |  Patch needs improvement:  0
  Needs tests:  0                    |                    UI/UX:  0
Easy pickings:  0                    |
-------------------------------------+-------------------------------------

Comment (by aaugustin):

 `USE_TZ = True` is in the default settings files (for a good reason) and
 we want to keep Django usable without having to learn pip / virtualenv
 first (also for a good reason). I went to great lengths to ensure that
 pytz wouldn't be a mandatory.

 I think it's more promising to raise a more explicit error in this case,
 ie. "value outside of supported range, please install pytz".

 I

-- 
Ticket URL: <https://code.djangoproject.com/ticket/18766#comment:11>
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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to