Closed
Bug 433843
Opened 17 years ago
Closed 17 years ago
Revise or remove getFloatingDate
Categories
(Calendar :: General, defect)
Calendar
General
Tracking
(Not tracked)
VERIFIED
FIXED
0.9
People
(Reporter: dbo, Assigned: berend.cornelius09)
References
()
Details
Attachments
(1 file, 1 obsolete file)
|
7.33 KB,
patch
|
dbo
:
review+
|
Details | Diff | Splinter Review |
I stumbled over calUtils.js' getFloatingDate() which has been introduced with recent minimonth changes:
1. A js Date cannot get floating, so I think the name of that function is misleading.
2. The function hardly does anything:
function getFloatingDate(aDate) {
var d = createDateTime();
d.timezone = floating();
d.jsDate = aDate; // this sets 'd' UTC-based
return d.jsDate; // this returns d in system-timezone
}
so calls like "getFloatingDate(new Date())" could be replaced by "new Date()".
I doubt that is what has been intended.
| Assignee | ||
Comment 1•17 years ago
|
||
Assignee: nobody → Berend.Cornelius
Status: NEW → ASSIGNED
Attachment #321229 -
Flags: review?(daniel.boelzle)
| Assignee | ||
Comment 2•17 years ago
|
||
improved version of the first patch
Attachment #321229 -
Attachment is obsolete: true
Attachment #321262 -
Flags: review?(daniel.boelzle)
Attachment #321229 -
Flags: review?(daniel.boelzle)
| Reporter | ||
Comment 3•17 years ago
|
||
Comment on attachment 321262 [details] [diff] [review]
patch v.#2
r=dbo
Attachment #321262 -
Flags: review?(daniel.boelzle) → review+
| Assignee | ||
Comment 4•17 years ago
|
||
patch checked in on trunk and MOZILLA_1_8_BRANCH
-> FIXED
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Updated•17 years ago
|
Target Milestone: --- → 0.9
You need to log in
before you can comment on or make changes to this bug.
Description
•