Thomas Sevestre wrote:
> 
> The following script doesn't work...
> Do you have any idea of what is wrong?

There are loads of sub! calls in date/format.rb, but I have no idea why 
delegating sub! in this way would break it.

I note that the same error occurs in 1.8.6 too:
ArgumentError: argument out of range
  from /usr/lib/ruby/1.8/time.rb:184:in `local'
  from /usr/lib/ruby/1.8/time.rb:184:in `make_time'
  from /usr/lib/ruby/1.8/time.rb:243:in `parse'
  from (irb):19

I copied time.rb to my local directory and modified it to puts the 
arguments to local. I see that it is calling

 Time.local(1999, 10, 31, 16, 46, 50, 0)

before the sub! change, but

 Time.local(2009,0,1,0,0,0,0)

after it. Most bizarre.
-- 
Posted via http://www.ruby-forum.com/.