Fix multiple bugs in arrow.get() tzinfo kwarg handling#968
Fix multiple bugs in arrow.get() tzinfo kwarg handling#968jadchaar merged 6 commits intoarrow-py:masterfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## master #968 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 10 10
Lines 2036 2036
Branches 328 328
=========================================
Hits 2036 2036
Continue to review full report at Codecov.
|
|
LGTM, but I think this is a more widespread issue @systemcatch. We should be passing along the tz object in all of these other factory methods as well: Lines 234 to 247 in 08705bc |
|
Hey @jadchaar I agree with you on the >>> arw=arrow.Arrow(2021, 4, 29, 22, 7, tzinfo="America/Chicago")
>>> arw
<Arrow [2021-04-29T22:07:00-05:00]>
>>> arrow.get(arw, tzinfo="Europe/London")
<Arrow [2021-04-29T22:07:00-05:00]>However the |
|
@systemcatch I made a few tweaks to comments and made the tzinfo kwarg explicit for the |
|
Looks good to me Jad, feel free to merge if you're happy with everything. |
Pull Request Checklist
Thank you for taking the time to improve Arrow! Before submitting your pull request, please check all appropriate boxes:
toxormake testto find out!).tox -e lintormake lintto find out!).masterbranch.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
The
tzinfokwarg should now be handled correctly rather than being dropped.fixes #944