#17134: Wrong parsing of microseconds in !BaseTemporalField.to_python
---------------------------+------------------------------------
     Reporter:  aaugustin  |                    Owner:  jcd
         Type:  Bug        |                   Status:  assigned
    Component:  Forms      |                  Version:  SVN
     Severity:  Normal     |               Resolution:
     Keywords:             |             Triage Stage:  Accepted
    Has patch:  0          |      Needs documentation:  0
  Needs tests:  0          |  Patch needs improvement:  0
Easy pickings:  1          |                    UI/UX:  0
---------------------------+------------------------------------

Comment (by jcd):

 Another bug in there: It checks to see that there is one and only one '.'
 in the input before applying the workaround.  However, a format like
 '%Y.%m.%d %H:%M:%S.%f' would require three dots, and would break this.  It
 should instead test that the number of dots in the input match the number
 of dots in the format, and then apply the fix.  I'll make sure that case
 gets tested as well.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/17134#comment:4>
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 this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to