mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 302387: rdf_FormatDate() generates incorrect timezone information; p=ian@mckellar.org, r=pike,sr=shaver,a1.9=dsicore
This commit is contained in:
parent
0ea02d9532
commit
90631a2b86
@ -90,13 +90,13 @@ void
|
||||
rdf_FormatDate(PRTime aTime, nsACString &aResult)
|
||||
{
|
||||
// Outputs Unixish date in GMT plus usecs; e.g.,
|
||||
// Wed Jan 9 19:15:13 GMT 2002 +002441
|
||||
// Wed Jan 9 19:15:13 2002 +002441
|
||||
//
|
||||
PRExplodedTime t;
|
||||
PR_ExplodeTime(aTime, PR_LocalTimeParameters, &t);
|
||||
PR_ExplodeTime(aTime, PR_GMTParameters, &t);
|
||||
|
||||
char buf[256];
|
||||
PR_FormatTimeUSEnglish(buf, sizeof buf, "%a %b %d %H:%M:%S %Z %Y", &t);
|
||||
PR_FormatTimeUSEnglish(buf, sizeof buf, "%a %b %d %H:%M:%S %Y", &t);
|
||||
aResult.Append(buf);
|
||||
|
||||
// usecs
|
||||
|
Loading…
Reference in New Issue
Block a user