-
-
Notifications
You must be signed in to change notification settings - Fork 925
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
Time#getlocal should accept Fixnum as an argument #2438
Comments
Thanks for opening this. It should be fixed soon. I realized there are several numeric cases we don't have covered. |
You are welcome! I would gladly submit a pull request for this, but I am not familiar with JRuby internals :( |
Fixed in commit dbf58e6. This yielded a couple of other smaller fixes at the same time on both 1.7 and master. I did not try original snippet so the original reporter can reopen if somehow this is not correct. |
@enebo Great work. I will check the original snippet soon. |
The original snippet also works fine:
|
@mjansing great. Thanks for checking... |
I will explain the problem briefly:
According to the documentation (MRI),
Time#getlocal
can accept an optionalutc_offset
parameter, which is a Fixnum (http://www.ruby-doc.org/core-2.1.5/Time.html#method-i-utc_offset).The text was updated successfully, but these errors were encountered: