Hey there,

I just now discovered, the dateElementParser in ISODateTimeFormat allows
for years, which are not composed of at least four digits. I do not have
access to the ISO standard, but reading wikipedia (which might not be
right) states:

ISO 8601 prescribes, as a minimum, a four-digit year [YYYY] to avoid the
year 2000 problem.

Still, you can get a number like '5' parsed as a valid year.

Likely being wildly wrong here, but I guess this is supposed to work like
that? Is there an option to make it more strict and force people to write
0005 or am I better off implementing that myself?

Thanks for any help and hints!


--Alex
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Joda-interest mailing list
Joda-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/joda-interest

Reply via email to