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

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.

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

Successfully merging this pull request may close these issues.

None yet

3 participants