Closed Bug 329654 Opened 20 years ago Closed 20 years ago

calDateTimeFormatter always uses selfmade long formatted date string hack

Categories

(Calendar :: Internal Components, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ssitter, Assigned: ssitter)

Details

Attachments

(1 file)

calDateTimeFormatter always uses selfmade long formatted date string hack Summary: In the constructor of calDateTimeFormatter there is a test if the long formatted date is the same as short formatted date. If the test fails a workaround is used in formatDateLong() by building a custom long formatted date string manually. Error: Because the identifier 'probeString' is not defined this will always result in an exception during that test. Thus always the custom long date string is used instead of the OS specific one provided by nsIScriptableDateFormat. Expected Result: The OS specific date string should be used. Reference: http://lxr.mozilla.org/seamonkey/source/calendar/base/src/calDateTimeFormatter.js#53 Note: Removing the 'longProbeString == probeString' part fixes this. But we should test agains the short formatted string as intended.
Assignee: base → ssitter
Status: NEW → ASSIGNED
Attachment #214342 - Flags: first-review?(dmose)
Comment on attachment 214342 [details] [diff] [review] init probeString with short formatted date string Actually mvl is the correct person for this review as he wrote the original code.
Attachment #214342 - Flags: first-review?(dmose) → first-review?(mvl)
Comment on attachment 214342 [details] [diff] [review] init probeString with short formatted date string r=mvl
Attachment #214342 - Flags: first-review?(mvl) → first-review+
patch checked in.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: