#22814: parse_datetime can't parse datetimes returned from postgresql
---------------------------+--------------------------------------
     Reporter:  Naddiseo   |                    Owner:  nobody
         Type:  Bug        |                   Status:  new
    Component:  Utilities  |                  Version:  1.6
     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
---------------------------+--------------------------------------

Comment (by Naddiseo):

 `django.db.models.fields.DateTimeField` calls it in its `to_python`
 method. I recommend django switch to be closer to ISO-8601 which allows
 the following formats: Z; [+-]hh:mm, [+-]hhmm, [+-]hh
 Currently `parse_datetime` allows all except the last case which was taken
 out in 2f59e94a4150c84c8b4 because it (mistakenly) also allowed [+-]hm

 I propose that [+-]hh be reintroduced with the semantics outlined in
 ISO-8601. (I'll create a PR)

-- 
Ticket URL: <https://code.djangoproject.com/ticket/22814#comment:2>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.7810c81a03f2a6fc47a90a00b5dffb39%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to