Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed #30803 -- Allowed comma separators for miliseconds in parse_datetime(), parse_time() and parse_duration(). #11818

Closed
wants to merge 1 commit into from

Conversation

benwilber
Copy link
Contributor

@benwilber benwilber commented Sep 25, 2019

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)

Trac issue https://code.djangoproject.com/ticket/30803#ticket

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)
@felixxm felixxm changed the title Support comma separators in ISO-8601 date/time format for milliseconds Fixed #30803 -- Allowed comma separators for miliseconds in parse_datetime(), parse_time() and parse_duration(). Oct 1, 2019
@felixxm
Copy link
Member

felixxm commented Oct 1, 2019

@benwilber Thanks for this patch 👍 Please add release notes and test for parse_duration(). We should also update parse_duration() documentation because it contains "DD HH:MM:SS.uuuuuu" as a expected format.

@felixxm
Copy link
Member

felixxm commented Nov 25, 2019

Superseded by #12141.

@felixxm felixxm closed this Nov 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants