Closed
Bug 386772
Opened 17 years ago
Closed 17 years ago
datepicker should use iso format for dates
Categories
(Toolkit :: UI Widgets, defect)
Tracking
()
RESOLVED
FIXED
mozilla1.9beta1
People
(Reporter: enndeakin, Assigned: enndeakin)
Details
Attachments
(1 file)
23.85 KB,
patch
|
Gavin
:
review+
|
Details | Diff | Splinter Review |
Currently yyyy/mm/dd is used, but yyyy-mm-dd should be used
Assignee | ||
Comment 1•17 years ago
|
||
Also includes general datepicker/timepicker testcases.
Attachment #270809 -
Flags: review?(gavin.sharp)
Comment 2•17 years ago
|
||
Comment on attachment 270809 [details] [diff] [review] change to use hyphens as separators >Index: toolkit/content/tests/widgets/test_datepicker.xul >Index: toolkit/content/tests/widgets/test_timepicker.xul These comments apply to both files: >+ var setTimeField = function(field, value, expectException, >+ expectedHour, expectedMinute, expectedSecond) nit: Use function setTimeField() {} here, that way the function object has a name for debugging purposes. >+function testtag_comparetime(tp, testid, hour, minute, second) >+{ >+ is(dateValue.getHours() == hour && >+ dateValue.getMinutes() == minute && >+ dateValue.getSeconds() == second, >+ true, testid + " dateValue"); nit: Use ok() here?
Attachment #270809 -
Flags: review?(gavin.sharp) → review+
Comment 3•17 years ago
|
||
I had to disable the tests added here because they were causing trouble on the windows unit test box. See bug 389616.
Assignee | ||
Updated•17 years ago
|
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Comment 4•17 years ago
|
||
(In reply to comment #1) > Created an attachment (id=270809) [details] > change to use hyphens as separators > > Also includes general datepicker/timepicker testcases. > For the record, it looks like this patch changes not just the way the datepicker's displayed but also the format of the contents of the "value" attribute and "value" property.
Assignee | ||
Comment 5•17 years ago
|
||
This patch changes the value property/attribute to use '-' instead of '/'. It doesn't change the displayed value at all.
Assignee | ||
Updated•17 years ago
|
Flags: in-testsuite+
You need to log in
before you can comment on or make changes to this bug.
Description
•