From: Benoit Daloze Date: 2010-06-09T05:44:56+09:00 Subject: [ruby-core:30676] Re: [Bug #3411] Time.local 1916,5,1 #=> 1916-04-30 23:00:00 +0100 --0016364178018caaa804888adc34 Content-Type: text/plain; charset=ISO-8859-1 On 8 June 2010 21:53, wrote: > On Tue, Jun 8, 2010 at 2:58 PM, Benoit Daloze > wrote: > > Bug #3411: Time.local 1916,5,1 #=> 1916-04-30 23:00:00 +0100 > > http://redmine.ruby-lang.org/issues/show/3411 > > > > Author: Benoit Daloze > > Status: Open, Priority: Normal > > Category: core, Target version: 1.9.2 > > ruby -v: ruby 1.9.3dev (2010-06-08 trunk 28202) [x86_64-darwin10.3.0] > > > > 1.8.7 gives: > > Time.local 1916,5,1 #=> Mon May 01 01:00:00 +0200 1916 > > > > I believe this also happen in 1.9.2RC, though I can not test it myself. > > Here's all the rubies I have available at the moment: > > ruby 1.9.2dev (2009-07-18 trunk 24186) [i686-linux] > 1916-05-01 00:00:00 -0500 > > ruby 1.9.2dev (2010-05-31 revision 28117) [i686-linux] > 1916-05-01 00:00:00 -0500 > > rubinius 1.0.0 (1.8.7 release 2010-05-14 JI) [i686-pc-linux-gnu] > Mon May 01 00:00:00 -0500 1916 > > jruby 1.5.0 (ruby 1.8.7 patchlevel 249) (2010-05-12 6769999) (OpenJDK > Client VM 1.6.0_18) [i386-java] > Mon May 01 00:00:00 -0500 1916 > > jruby 1.5.0 (ruby 1.9.2dev trunk 24787) (2010-05-12 6769999) (OpenJDK > Client VM 1.6.0_18) [i386-java] > Mon May 01 00:00:00 -0500 1916 > > ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux] > Mon May 01 00:00:00 -0500 1916 > > Then maybe it is a platform problem or a zone problem (you are in -5, so it is likely not happening). Could someone checks on OSX with trunk and 1.9.2 ? For my part I still get: $ ruby -e 'p Time.local 1916,5,1' 1916-04-30 23:00:00 +0100 --0016364178018caaa804888adc34 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On 8 June 2010 21:53, <brabuhr@gmail.com> wrote:
On Tue, Jun 8, 2010 at 2:58 PM, Benoit Daloze <redmine@ruby-lang.org> wrote:
> Bug #3411: Time.local 1916,5,1 #=3D> 1916-04-30 23:00:00 +0100
> http://redmine.ruby-lang.org/issues/show/3411
>
> Author: Benoit Daloze
> Status: Open, Priority: Normal
> Category: core, Target version: 1.9.2
> ruby -v: ruby 1.9.3dev (2010-06-08 trunk 28202) [x86_64-darwin10.3.0]<= br> >
> 1.8.7 gives:
> Time.local 1916,5,1 #=3D> Mon May 01 01:00:00 +0200 1916
>
> I believe this also happen in 1.9.2RC, though I can not test it myself= .

Here's all the rubies I have available at the moment:

ruby 1.9.2dev (2009-07-18 trunk 24186) [i686-linux]
1916-05-01 00:00:00 -0500

ruby 1.9.2dev (2010-05-31 revision 28117) [i686-linux]
1916-05-01 00:00:00 -0500

rubinius 1.0.0 (1.8.7 release 2010-05-14 JI) [i686-pc-linux-gnu]
Mon May 01 00:00:00 -0500 1916

jruby 1.5.0 (ruby 1.8.7 patchlevel 249) (2010-05-12 6769999) (OpenJDK
Client VM 1.6.0_18) [i386-java]
Mon May 01 00:00:00 -0500 1916

jruby 1.5.0 (ruby 1.9.2dev trunk 24787) (2010-05-12 6769999) (OpenJDK
Client VM 1.6.0_18) [i386-java]
Mon May 01 00:00:00 -0500 1916

ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux]
Mon May 01 00:00:00 -0500 1916

Then maybe it is a platform problem
or a zone problem= (you are in -5, so it is likely not happening).
Could someone checks on= OSX with trunk and 1.9.2 ?

For my part I still get:
$ ruby -e &#= 39;p Time.local 1916,5,1'
1916-04-30 23:00:00 +0100

--0016364178018caaa804888adc34--