Closed
Bug 273909
Opened 20 years ago
Closed 20 years ago
setting year in calIDateTime doesn't update jsDate
Categories
(Calendar :: Internal Components, defect)
Calendar
Internal Components
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: mvl, Assigned: shaver)
Details
when setting the year (or month, or any other property) doesn't update what
.jsDate returns.
testcase:
d = Components.classes["@mozilla.org/calendar/datetime;1"]
.createInstance(Components.interfaces.calIDateTime);
d.year = 2000;
dump(d.jsDate+"\n"+d.year+"\n");
actual result:
Thu Jan 01 1970 01:00:00 GMT+0100 (CET)
2000
expected:
Thu Jan 01 2000 01:00:00 GMT+0100 (CET)
2000| Assignee | ||
Comment 1•20 years ago
|
||
Thou shalt normalize after setting and before expecting your changes to be visible in such things as jsDate. (If you think that we should auto-normalize when getting a jsDate, I might agree, but you should file that bug on Vlad.)
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Updated•19 years ago
|
QA Contact: vladimir → base
You need to log in
before you can comment on or make changes to this bug.
Description
•