mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Bug 201248 Change filter/spam logging to ISO time as an interim measure until logging can be localized p=cnst+moz@bugmail.mojo.ru r=smontagu sr=roc moa=bienvenu a=chofmann
This commit is contained in:
parent
165fdbff2b
commit
ef94b9c26f
@ -366,7 +366,8 @@ NS_IMETHODIMP nsMsgFilter::LogRuleHit(nsIMsgRuleAction *aFilterAction, nsIMsgDBH
|
||||
rv = aMsgHdr->GetDate(&date);
|
||||
PRExplodedTime exploded;
|
||||
PR_ExplodeTime(date, PR_LocalTimeParameters, &exploded);
|
||||
PR_FormatTimeUSEnglish(dateStr, 100, "%m/%d/%Y %I:%M %p", &exploded);
|
||||
// XXX Temporary until logging is fully localized
|
||||
PR_FormatTimeUSEnglish(dateStr, sizeof(dateStr), "%Y-%m-%d %H:%M:%S", &exploded);
|
||||
|
||||
aMsgHdr->GetAuthor(getter_Copies(author));
|
||||
aMsgHdr->GetSubject(getter_Copies(subject));
|
||||
|
@ -466,7 +466,8 @@ NS_IMETHODIMP nsSpamSettings::LogJunkHit(nsIMsgDBHdr *aMsgHdr, PRBool aMoveMessa
|
||||
rv = aMsgHdr->GetDate(&date);
|
||||
PRExplodedTime exploded;
|
||||
PR_ExplodeTime(date, PR_LocalTimeParameters, &exploded);
|
||||
PR_FormatTimeUSEnglish(dateStr, 100, "%m/%d/%Y %I:%M %p", &exploded);
|
||||
// XXX Temporary until logging is fully localized
|
||||
PR_FormatTimeUSEnglish(dateStr, sizeof(dateStr), "%Y-%m-%d %H:%M:%S", &exploded);
|
||||
|
||||
aMsgHdr->GetAuthor(getter_Copies(author));
|
||||
aMsgHdr->GetSubject(getter_Copies(subject));
|
||||
|
Loading…
Reference in New Issue
Block a user