arrow-py / arrow

🏹 Better dates & times for Python
https://arrow.readthedocs.io
Apache License 2.0
8.71k stars 673 forks source link

Added space to parser #808

Closed impact27 closed 4 years ago

impact27 commented 4 years ago

Pull Request Checklist

Thank you for taking the time to improve Arrow! Before submitting your pull request, please check all appropriate boxes:

If you have any questions about your code changes or any of the points above, please submit your questions along with the pull request and we will try our best to help!

Description of Changes

Closes: #807 Add the option of a single space before the timezone, so a third format is correctly parsed:

arrow.get('2020-06-10T14:33:23.489+0200')
arrow.get('2020-06-10 14:33:23.489+0200')
# New accepted format
arrow.get('2020-06-10 14:33:23.489 +0200')
codecov-commenter commented 4 years ago

Codecov Report

Merging #808 into master will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #808   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           10        10           
  Lines         1740      1746    +6     
  Branches       295       297    +2     
=========================================
+ Hits          1740      1746    +6     
Impacted Files Coverage Δ
arrow/parser.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 0a37fa5...3389542. Read the comment docs.

jadchaar commented 4 years ago

See comments on corresponding issue (https://github.com/crsmithdev/arrow/issues/807) for closure reason.