Re: Funky date string accepted

2011-08-23 Thread Markus Jelsma
That makes sense indeed. Wouldn't it be an idea to test for the single allowed format before parsing it? > : I see, is the leading - char just ignored then? > > i'd have to re-look at the tests/docs (i don't really want to repeat > that agonizing headache right now), but i believe what you are s

Re: Funky date string accepted

2011-08-23 Thread Chris Hostetter
: I see, is the leading - char just ignored then? i'd have to re-look at the tests/docs (i don't really want to repeat that agonizing headache right now), but i believe what you are seeing is a compound problem... * parsing sees the -0001 and recognizes that as a negative year. * somewhere th

Re: Funky date string accepted

2011-08-23 Thread Markus Jelsma
I see, is the leading - char just ignored then? > : The following field value for a date field type is accepted: > : -0001-11-30T00:00:00Z > : > : and ends up in the index and as stored value as: > : 2-11-30T00:00:00Z > : > : I'd prefer to be punished with an exception. File a bug? > > That is

Re: Funky date string accepted

2011-08-23 Thread Chris Hostetter
: The following field value for a date field type is accepted: : -0001-11-30T00:00:00Z : : and ends up in the index and as stored value as: : 2-11-30T00:00:00Z : : I'd prefer to be punished with an exception. File a bug? That is actualy a legal date according to the format spec (although there

Funky date string accepted

2011-08-23 Thread Markus Jelsma
Hi, The following field value for a date field type is accepted: -0001-11-30T00:00:00Z and ends up in the index and as stored value as: 2-11-30T00:00:00Z I'd prefer to be punished with an exception. File a bug? Thanks