From: Greg Go Date: 2008-01-11T00:33:33+09:00 Subject: Re: DateTime new_offset unexpected results Todd Benson wrote: > On Jan 9, 2008 10:11 PM, Greg Go wrote: >> > >> > puts @jd ### >> you're going with this -- am I missing something with the way that ruby >> handles class variables? > > Simple. Just wanted to see if your dstStart and dstEnd vars were > correct, and if, in fact, you were actually entering the if condition. > > It's probably the bug that was mentioned, but I can't reproduce your > error. > > Todd Todd: Ah, I see. What I was doing to confirm that I had entered the test condition was changing the value of offset to, for example Rational(-8,24), and Rational(-5,24). I'll see if I can work up a test case and post it, just to be complete. Thanks! Greg -- Posted via http://www.ruby-forum.com/.