Skip to content

1.7.4 Regression: Time::localtime broken #747

hannesg opened this Issue May 19, 2013 · 1 comment

1 participant

hannesg commented May 19, 2013


Following problem:

$> rvm jruby-1.7.3 do ruby -e 'puts"+02:00")' 
1970-01-01 02:00:00 +0200
$> rvm jruby-1.7.4 do ruby -e 'puts"+02:00")'
ArgumentError: utc_offset out of range
  localtime at org/jruby/
     (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"


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

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.