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

1.7.4 Regression: Time::localtime broken #747

Closed
hannesg opened this Issue May 19, 2013 · 1 comment

Comments

Projects
None yet
1 participant
@hannesg
Copy link

hannesg commented May 19, 2013

Hi

Following problem:

$> rvm jruby-1.7.3 do ruby -e 'puts Time.at(0).localtime("+02:00")' 
1970-01-01 02:00:00 +0200
$> rvm jruby-1.7.4 do ruby -e 'puts Time.at(0).localtime("+02:00")'
ArgumentError: utc_offset out of range
  localtime at org/jruby/RubyTime.java:379
     (root) at -e:1

I nailed the problem down to RubyTime::getTimeZone expecting the timezone to be given as "HH(:MM(:SS))" but RubyTime::localtime supplies the timezone as "'GMT'+HHMM"

Cheers'
Hannes

@atambo atambo closed this in 5ac6e94 May 21, 2013

@hannesg

This comment has been minimized.

Copy link
Author

hannesg commented May 21, 2013

Thank you!

atambo added a commit that referenced this issue May 22, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.