recognize iso date without time in datejs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Web (MOVED TO GITHUB) |
New
|
Undecided
|
Unassigned |
Bug Description
Not exactly a bug but still a nuisance. Would it be possible for datejs to recognize iso dates without time suffix?
We do Selenium tests and noticed that, when passing an iso date %Y-%m-%d to the client, the date is recognized as
2014-03-01 -> 03. Jan 2014 (incorrect)
2014-03-25 -> 25. Mar 2014 (correct)
This is with ERP language set to German. Iso dates should, however, be language independent. That is why we are passing dates in this format during tests.
The problem can easily be worked around by appending a fake time like 2014-03-01T00:01. Still, an iso date should be correctly recognized as is without a time suffix. Or are there any countries where dates are formatted like iso but with month and day reversed, like yyyy-dd-mm?