Skip to content
New issue

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

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

Already on GitHub? # to your account

Use a regex to parse ISO8601 dates #2296

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jmarianer
Copy link

strptime is not consistently available and functional across operating systems; specifically, the code to parse timezones may or may not exist. This changes fromdateiso8601 to support, via regexen, the two most common ISO 8601 date formats: dateTtimeZ and dateTtime+00:00, where +00:00 is an offset from GMT (the + can be a - for the western hemisphere).

I believe this fixes bug #2195.

I am not sure if it would be desirable to also revert #1823 since that was (I believe) added specifically for fromdateiso8601.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 84.134% when pulling f774bfc on jmarianer:iso8601-regex into 80052e5 on stedolan:master.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants