Closed
Bug 246905
Opened 21 years ago
Closed 20 years ago
Expired Certificate shows inconsistent Date and Time
Categories
(Core Graveyard :: Security: UI, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: cnst+bmo, Assigned: cnst+bmo)
References
Details
(Keywords: intl)
Attachments
(2 files)
9.86 KB,
image/png
|
Details | |
1.83 KB,
patch
|
jgmyers
:
review+
brendan
:
superreview+
|
Details | Diff | Splinter Review |
Expired Certificate alert shows inconsistent Date and Time.
The problem is that
<http://lxr.mozilla.org/mozilla/source/security/manager/pki/resources/content/serverCertExpired.js>
uses .toLocaleString() JS-function (bug 153586), while some other C++ part of
the same dialogue uses nsIDateTimeFormat.
Function .toLocaleString() shows date in the long date format, while other parts
of the PSM UI use short date format.
The solution is to fix serverCertExpired.js to use nsIDateTimeFormat, and to use
kDateFormatShort as the format for the date.
I'll try to work on a patch sometime soon.
Assignee | ||
Updated•21 years ago
|
Blocks: dateandtime
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•21 years ago
|
||
Assignee | ||
Comment 2•21 years ago
|
||
Change serverCertExpired.js to use the same Date and Time format as that of
nsNSSDialogs.cpp.
http://lxr.mozilla.org/mozilla/source/security/manager/pki/resources/content/serverCertExpired.js
http://lxr.mozilla.org/mozilla/source/security/manager/pki/resources/locale/en-US/pippki.properties
http://lxr.mozilla.org/mozilla/source/security/manager/pki/src/nsNSSDialogs.cpp
Assignee | ||
Updated•21 years ago
|
Attachment #153483 -
Flags: review?(jgmyers)
Updated•21 years ago
|
Attachment #153483 -
Flags: review?(jgmyers) → review+
Assignee | ||
Updated•21 years ago
|
Attachment #153483 -
Flags: superreview?(brendan)
Comment 3•21 years ago
|
||
Comment on attachment 153483 [details] [diff] [review]
the patch for serverCertExpired.js
sr=brendan@mozilla.org
/be
Attachment #153483 -
Flags: superreview?(brendan) → superreview+
Comment 4•20 years ago
|
||
I checked this in with Kaie's approval. Thank you, Constantine.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Comment 5•19 years ago
|
||
Should we get this on 1.8 branch?
Updated•9 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•