Closed Bug 201248 Opened 22 years ago Closed 19 years ago

Filter/Junk Mail log should honour date-and-time notation format used in OS

Categories

(MailNews Core :: Filters, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.7beta

People

(Reporter: cnst+bmo, Assigned: cnst+bmo)

References

(Depends on 1 open bug)

Details

(Keywords: intl, l12y, polish)

Attachments

(2 files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.3) Gecko/20030312 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.3) Gecko/20030312 The date-and-time notation in the filter log is incorrect. Mozilla uses PM and AM (the American notation), not used in almost the whole civilised world (except for the USA). In the operating system the date and time format is set to yyyy-MM-dd and HH:mm:ss respectively. The date-and-time notation in other Mozilla components (including mail) seems to be correct. Reproducible: Always Steps to Reproduce: 1. If you have selected 'US' in the 'Regional and Language Options', then change the date and time format to yyyy-MM-dd and HH:mm:ss respectively. 2. Enable filter log. 3. Run filters; see the results in the filter log with the incorrect date-and-time notation. Actual Results: Filter log: "Applied filter "blah-blah" to message from blah-blah-blah - blah at 04/07/2003 09:41 AM Action = Move to folder imap://user@server/INBOX/folder id = 200304071341.h37DfVP2004867@freefall.freebsd.org" Expected Results: Filter log: "Applied filter "blah-blah" to message from blah-blah-blah - blah at 2003-04-07 09:41 Action = Move to folder imap://user@server/INBOX/folder id = 200304071341.h37DfVP2004867@freefall.freebsd.org"
*** Bug 201249 has been marked as a duplicate of this bug. ***
This bug prevents me from testing the filter log feature of the mail-client.
Summary: The date-and-time notation in 'Filter log' is incorrect. → The date-and-time notation in 'Filter log' is incorrect.
Depends on: 191185
Depends on: 174839
Keywords: intl
Verified bug on FreeBSD build. OS: All.
OS: Windows XP → All
Hardware: PC → All
Summary: The date-and-time notation in 'Filter log' is incorrect. → Filter/Junk Mail log should honour date-and-time notation format used in OS
Depends on: 174843
I assume, we need to change these lines: <http://lxr.mozilla.org/mozilla/source/mailnews/base/search/src/nsMsgFilter.cpp#366> 366 rv = aMsgHdr->GetDate(&date); 367 PRExplodedTime exploded; 368 PR_ExplodeTime(date, PR_LocalTimeParameters, &exploded); 369 PR_FormatTimeUSEnglish(dateStr, 100, "%m/%d/%Y %I:%M %p", &exploded); <http://lxr.mozilla.org/mozilla/source/mailnews/base/src/nsSpamSettings.cpp#467> 466 rv = aMsgHdr->GetDate(&date); 467 PRExplodedTime exploded; 468 PR_ExplodeTime(date, PR_LocalTimeParameters, &exploded); 469 PR_FormatTimeUSEnglish(dateStr, 100, "%m/%d/%Y %I:%M %p", &exploded); It is also kind of odd that we do not test rv status...
Depends on: 207550
Keywords: l12y
Keywords: polish
Blocks: dateandtime
Why is this bug still UNCONFIRMED?
confirming and taking
Assignee: naving → jshin
Severity: normal → enhancement
Status: UNCONFIRMED → NEW
Ever confirmed: true
(In reply to comment #7) > confirming and taking Please, take a look at patch #124918, from bug #207550, as it is related and should be applied to fix the hard-coded localisation strings.
This is a temporary patch, until bug #207550 is resolved. It uses ISO8601 notation for Date and Time, also known as SQL date string (YYYY-MM-DD HH:MM:SS). I also added seconds, since log-files must be rather accurate.
Assignee: jshin → cnst+bmo
Status: NEW → ASSIGNED
Severity: enhancement → normal
Target Milestone: --- → mozilla1.7beta
Comment on attachment 142889 [details] [diff] [review] ISO8601-compliance patch The advantages of the ISO 8601 notation can be found here: <http://www.cl.cam.ac.uk/~mgk25/iso-time.html> (A Summary of the International Standard Date and Time Notation). (It is a good-enough compromise for both American and European users.)
Attachment #142889 - Flags: superreview?(roc)
Comment on attachment 142889 [details] [diff] [review] ISO8601-compliance patch r=smontagu, but please add a comment repeating what you say in comment 9 before checking in.
Attachment #142889 - Flags: review+
Attachment #142889 - Flags: superreview?(roc) → superreview+
Comment on attachment 142889 [details] [diff] [review] ISO8601-compliance patch sure, moa=bienvenu
Attachment #142889 - Flags: approval1.7b?
Comment on attachment 142889 [details] [diff] [review] ISO8601-compliance patch a=chofmann for 1.7b
Attachment #142889 - Flags: approval1.7b? → approval1.7b+
Comment on attachment 142889 [details] [diff] [review] ISO8601-compliance patch Checked in by neil on 2004-03-12 15:53 PST.
No longer depends on: 174843
Product: MailNews → Core
Fixed by the checkin to bug 207550
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: