Temporary (untill the real problem gets fixed) fix for PDT+ bug 18186. r=vidur, a=chofmann

git-svn-id: svn://10.0.0.236/trunk@62058 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jst%citec.fi
2000-03-02 15:06:05 +00:00
parent 28c2c1e7e3
commit 5195de87f5
2 changed files with 18 additions and 2 deletions

View File

@@ -508,7 +508,15 @@ nsHTMLDocument::StartDocumentLoad(const char* aCommand,
char buf[100];
PRInt64 prusec, scale;
#ifdef XP_PC
LL_I2L(scale, 1L);
#else
// nsIFile->GetLastModificationDate() uses stat on Unix and not
// PRFileInfo64() to get the modification date, untill that is changed
// we haveto do different scaling to get the date right.
LL_I2L(scale, 1000000L);
#endif
LL_MUL(prusec, modDate, scale);
PR_ExplodeTime(prusec, PR_LocalTimeParameters, &prtime);
@@ -516,7 +524,7 @@ nsHTMLDocument::StartDocumentLoad(const char* aCommand,
// non-y2k with msvc; '%#c' requests that a full year be used in the
// result string. Other OSes just use "%c".
PR_FormatTime(buf, sizeof buf,
#ifdef _WIN32
#ifdef XP_PC
"%#c",
#else
"%c",