JRuby doesn't seem to support the Time.getlocal(utc_offset) method

Hi folks,

I am writing this email because I came across a behavior in JRuby that I
would like to further explain to myself.

Basically, the issue is that the getlocal method of the Time class
work when called with the single argument. I refer to this
I have reproduced the issue in a JIRB session:

irb(main):001:0> t = Time.utc(2000,1,1,20,15,1)
=> 2000-01-01 20:15:01 UTC
irb(main):002:0> t.utc?
=> true
irb(main):003:0> l = t.getlocal
=> 2000-01-01 22:15:01 +0200
irb(main):004:0> l.utc?
=> false
irb(main):005:0> t == l
=> true
irb(main):006:0> j = t.getlocal("+09:00")
ArgumentError: wrong number of arguments calling getlocal (1 for 0)
from (irb):6:in evaluate' from org/jruby/RubyKernel.java:1066:ineval’
from org/jruby/RubyKernel.java:1392:in loop' from org/jruby/RubyKernel.java:1174:incatch’
from org/jruby/RubyKernel.java:1174:in catch' from c:\jruby-1.7.2\bin\jirb:13:in(root)’

Do you happen to know what causes this ? Maybe there is some official
statement with regards to the Ruby language compatibility level, which
implies that this method is missing (or could be missing) in the JRuby
implementation. My environment is:

64-bit Microsoft Windows 7 Enterprise; 64-bit Sun/Oracle JDK 1.6.0_39;
64-bit JRuby 1.7.2 (1.9.3p327). Maybe the patch level 1.9.3p327 doesn’t
cover the functionality in question ?


Indeed, this form is not implemented. Please open a ticket.

Thank you.

Thanks, here https://jira.codehaus.org/browse/JRUBY-7130 it is.

Have a nice weekend,