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)
Calendar
Internal Components
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: ssitter, Assigned: ssitter)
Details
Attachments
(1 file)
|
1.41 KB,
patch
|
mvl
:
first-review+
|
Details | Diff | Splinter Review |
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 | ||
Comment 1•20 years ago
|
||
| Assignee | ||
Comment 2•20 years ago
|
||
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 3•20 years ago
|
||
Comment on attachment 214342 [details] [diff] [review]
init probeString with short formatted date string
r=mvl
Attachment #214342 -
Flags: first-review?(mvl) → first-review+
Comment 4•20 years ago
|
||
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.
Description
•