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

Fix negative offset for UTC #377

Merged
merged 2 commits into from
Nov 29, 2016
Merged

Fix negative offset for UTC #377

merged 2 commits into from
Nov 29, 2016

Conversation

mchlrhw
Copy link
Contributor

@mchlrhw mchlrhw commented Nov 28, 2016

Specifying ZZ in a format string gives an offest of -00:00 for UTC,
despite the arrow object repr showing +00:00. Detect using >= 0
for consistency.

Specifying ZZ in a format string gives an offest of -00:00 for UTC,
despite the arrow object repr showing +00:00. Detect `using >= 0`
for consistency.
@1CM69
Copy link

1CM69 commented Nov 28, 2016

Cheers for looking at this

@mchlrhw
Copy link
Contributor Author

mchlrhw commented Nov 29, 2016

Hmmm, the tests failed because of the format change. I guess either they want it to be like that, or they're locking in the behaviour for some other reason. I'll fix the tests, but there's no guarantee that the maintainers will appreciate the patch! 😄

@codecov-io
Copy link

codecov-io commented Nov 29, 2016

Current coverage is 100% (diff: 100%)

Merging #377 into master will not change coverage

@@           master   #377   diff @@
====================================
  Files          14     14          
  Lines        2899   2902     +3   
  Methods         0      0          
  Messages        0      0          
  Branches      207    208     +1   
====================================
+ Hits         2899   2902     +3   
  Misses          0      0          
  Partials        0      0          

Powered by Codecov. Last update 5f235bc...a6c9108

@andrewelkins
Copy link
Contributor

I'll merge. This goes against what moment.js does and just is odd behavior. Thanks for the PR

@andrewelkins andrewelkins merged commit 91365c1 into arrow-py:master Nov 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants