TimeTextBox: lenient parsing of times not working
see dijit/tests/form/test_TimeTextBox.html, tested on FF3/Mac
- In the second box, change 5:45 p.m. to 5:45 pm or 5:45pm. An error indicator will not be shown, but the drop down choices disappear, and if you hover over the arrows you get exceptions like
this.timeMenu.childNodes[0] is undefined
[Break on this error] var index = this.timeMenu.childNodes[0].index;
../../.....Picker.js (line 339)
Index or size is negative or greater than the allowed amount" code: "1
[Break on this error] var index = this.timeMenu.childNodes[0].index;
- Enter a value using "AM" or "PM" in uppercase, and you get a warning icon (and still no drop down) even though the value is parsed and accepted when you change focus.
dojo.date.locale.parse should accept all of these forms, unless strict:true is set.
Change History (6)
Description: |
modified (diff)
|
Summary: |
lenient parsing of times not working →
TimeTextBox: lenient parsing of times not working
|
Owner: |
changed from Douglas Hays to Adam Peller
|
Resolution: |
→ worksforme
|
Status: |
new →
closed
|
Component: |
Dijit →
Dijit - Form
|
dojo.date.locale.parse("5:45:00 P.M.", {formatLength:"medium",locale:"",selector:"time",fullYear:true}) returns null