From 5195de87f5fc3aa2e00703ab8fe6304f2dac3387 Mon Sep 17 00:00:00 2001 From: "jst%citec.fi" Date: Thu, 2 Mar 2000 15:06:05 +0000 Subject: [PATCH] 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 --- mozilla/content/html/document/src/nsHTMLDocument.cpp | 10 +++++++++- mozilla/layout/html/document/src/nsHTMLDocument.cpp | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/mozilla/content/html/document/src/nsHTMLDocument.cpp b/mozilla/content/html/document/src/nsHTMLDocument.cpp index f5784dc10bc..a937ebe352b 100644 --- a/mozilla/content/html/document/src/nsHTMLDocument.cpp +++ b/mozilla/content/html/document/src/nsHTMLDocument.cpp @@ -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", diff --git a/mozilla/layout/html/document/src/nsHTMLDocument.cpp b/mozilla/layout/html/document/src/nsHTMLDocument.cpp index f5784dc10bc..a937ebe352b 100644 --- a/mozilla/layout/html/document/src/nsHTMLDocument.cpp +++ b/mozilla/layout/html/document/src/nsHTMLDocument.cpp @@ -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",