[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#484789: date parsing error RC?



On Fri, 30 Jan 2009, Ross Boylan wrote:

> On Mon, 2009-01-26 at 17:37 -0800, Don Armstrong wrote:
> > I actually went back and made some changes which now properly work
> > with bug #356853, so in theory, this should be fixed on the BTS too.
> > If you could rerun the test with your machine, and see if it fails
> > again, that'd be useful. Otherwise, the problem is actually solved.
> 
> I tried the other system and there were no problems.  So I think it's
> fixed too.  Thank you very much.
> 
> So what component did you fix to get things working?

It's the SOAP interface; Perl tries to auto-guess what type things you
send over it are, and screws up in the case of year-month (basically,
anything that matches \d{4}-\d{2} is a Year-Month). Ruby is silly, and
explodes if it's not actually a valid date.

The fix is basically killing off the auto-guessing, since everything
that the BTS sends out is a string or a number; there are no dates.
[Well, I lie slightly; there are epochs, but these are
indistinguishable from numbers.]


Don Armstrong

-- 
Never underestimate the power of human stupidity.     
 -- Robert Heinlein

http://www.donarmstrong.com              http://rzlab.ucr.edu



Reply to: