Re: [Xsltforms-support] Date parsing fails
Brought to you by:
alain-couthures
From: Alain C. <ala...@ag...> - 2011-07-21 19:02:53
|
Hi Steve, > I've discovered that when dates are typed manually into an input then > it is possible to enter invalid dates which the code converts to other > valid values. For example, the number '3' becomes 03/03/2003 and > '32/01/2011' becomes 01/02/2011. The problem seems to lie in the > method I8N. parse which is too tolerant! > Yes, I know this method for being perfectible, it is now just based on Javascript Date class. Contributions are welcome ;-) -Alain |