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:
neil%parkwaycc.co.uk 2004-03-12 23:53:37 +00:00
parent 165fdbff2b
commit ef94b9c26f
2 changed files with 4 additions and 2 deletions

View File

@ -366,7 +366,8 @@ NS_IMETHODIMP nsMsgFilter::LogRuleHit(nsIMsgRuleAction *aFilterAction, nsIMsgDBH
rv = aMsgHdr->GetDate(&date); rv = aMsgHdr->GetDate(&date);
PRExplodedTime exploded; PRExplodedTime exploded;
PR_ExplodeTime(date, PR_LocalTimeParameters, &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->GetAuthor(getter_Copies(author));
aMsgHdr->GetSubject(getter_Copies(subject)); aMsgHdr->GetSubject(getter_Copies(subject));

View File

@ -466,7 +466,8 @@ NS_IMETHODIMP nsSpamSettings::LogJunkHit(nsIMsgDBHdr *aMsgHdr, PRBool aMoveMessa
rv = aMsgHdr->GetDate(&date); rv = aMsgHdr->GetDate(&date);
PRExplodedTime exploded; PRExplodedTime exploded;
PR_ExplodeTime(date, PR_LocalTimeParameters, &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->GetAuthor(getter_Copies(author));
aMsgHdr->GetSubject(getter_Copies(subject)); aMsgHdr->GetSubject(getter_Copies(subject));