From: Niklas Backlund Date: 2000-11-23T04:41:38+09:00 Subject: [ruby-talk:6528] Re: Time Trouble On Thu, 23 Nov 2000, Hugh Sasse Staff Elec Eng wrote: > > > Niklas Backlund writes: > > > > > > > > > > > Can someone please explain this result to me: > > > > > > > > irb(main):001:0> 1.upto(12) {|m| puts Time.local(2000, m, 1, 0, 0)} > > > > Sat Jan 01 00:00:00 GMT+1:00 2000 > > > > Tue Feb 01 00:00:00 GMT+1:00 2000 > > > > Wed Mar 01 00:00:00 GMT+1:00 2000 > > > > Sat Apr 01 01:00:00 GMT+1:00 2000 > > > > Mon May 01 01:00:00 GMT+1:00 2000 > > > > Thu Jun 01 01:00:00 GMT+1:00 2000 > > > > Sat Jul 01 01:00:00 GMT+1:00 2000 > > > > Tue Aug 01 01:00:00 GMT+1:00 2000 > > > > Fri Sep 01 01:00:00 GMT+1:00 2000 > > > > Sun Oct 01 01:00:00 GMT+1:00 2000 > > > > Wed Nov 01 00:00:00 GMT+1:00 2000 > > > > Fri Dec 01 00:00:00 GMT+1:00 2000 > > I think you are right: this is incorrect. In the summer it should > set the timezone to GMT+2:00, shouldn't it? If it is taking account of > Daylight Saving Time.... Yeah, if you want to create an object referring to something that ocurred in the past, you shouldn't have to compensate an hour (sometimes) to get it right, should you? I'd say there's something fishy about this behaviour... We should let the OS handle the Daylight Savings Time instead. /Niklas