#30803: Dateparse function should support comma separators for milliseconds
according to ISO-8601
-----------------------------------------+------------------------
               Reporter:  benwilber      |          Owner:  nobody
                   Type:  Uncategorized  |         Status:  new
              Component:  Uncategorized  |        Version:  2.2
               Severity:  Normal         |       Keywords:
           Triage Stage:  Unreviewed     |      Has patch:  0
    Needs documentation:  0              |    Needs tests:  0
Patch needs improvement:  0              |  Easy pickings:  0
                  UI/UX:  0              |
-----------------------------------------+------------------------
 Presently the regex for parsing ISO-8601 formatted datetimes in
 django.utils.dateparse.parse_time and parse_datetime  only supports period
 (.) separators for milliseconds.

 Examples:

 2014-08-06T11:00:00.000Z

 2014-08-06T11:00:00,000Z


 ISO 8601:2004 states that parsers should support both delineators, with a
 preference for commas.   https://www.iso.org/standard/40874.html


 A decimal mark, either a comma or a dot (without any preference as stated
 in resolution 10 of the 22nd General Conference CGPM in 2003,[16] but with
 a preference for a comma according to ISO 8601:2004)


 Github Pull Request: https://github.com/django/django/pull/11818

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30803>
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/052.7a231435a1503c32a7ea760271beb42b%40djangoproject.com.

Reply via email to