Closed Bug 433843 Opened 17 years ago Closed 17 years ago

Revise or remove getFloatingDate

Categories

(Calendar :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: dbo, Assigned: berend.cornelius09)

References

()

Details

Attachments

(1 file, 1 obsolete file)

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.
Attached patch patch to remove the function (obsolete) — Splinter Review
Assignee: nobody → Berend.Cornelius
Status: NEW → ASSIGNED
Attachment #321229 - Flags: review?(daniel.boelzle)
Attached patch patch v.#2Splinter Review
improved version of the first patch
Attachment #321229 - Attachment is obsolete: true
Attachment #321262 - Flags: review?(daniel.boelzle)
Attachment #321229 - Flags: review?(daniel.boelzle)
Comment on attachment 321262 [details] [diff] [review] patch v.#2 r=dbo
Attachment #321262 - Flags: review?(daniel.boelzle) → review+
patch checked in on trunk and MOZILLA_1_8_BRANCH -> FIXED
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Target Milestone: --- → 0.9
Checked on mxr.mozilla.com -> VERIFIED
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: