diff --git a/mozilla/content/html/document/src/nsHTMLDocument.cpp b/mozilla/content/html/document/src/nsHTMLDocument.cpp
index 62c234b0c09..f614920e9bd 100644
--- a/mozilla/content/html/document/src/nsHTMLDocument.cpp
+++ b/mozilla/content/html/document/src/nsHTMLDocument.cpp
@@ -515,7 +515,7 @@ nsHTMLDocument::StartDocumentLoad(const char* aCommand,
char buf[100];
PRInt64 intermediateValue;
- LL_I2L(intermediateValue, PR_USEC_PER_SEC);
+ LL_I2L(intermediateValue, PR_USEC_PER_MSEC);
LL_MUL(usecs, modDate, intermediateValue);
PR_ExplodeTime(usecs, PR_LocalTimeParameters, &prtime);
diff --git a/mozilla/layout/html/document/src/nsHTMLDocument.cpp b/mozilla/layout/html/document/src/nsHTMLDocument.cpp
index 62c234b0c09..f614920e9bd 100644
--- a/mozilla/layout/html/document/src/nsHTMLDocument.cpp
+++ b/mozilla/layout/html/document/src/nsHTMLDocument.cpp
@@ -515,7 +515,7 @@ nsHTMLDocument::StartDocumentLoad(const char* aCommand,
char buf[100];
PRInt64 intermediateValue;
- LL_I2L(intermediateValue, PR_USEC_PER_SEC);
+ LL_I2L(intermediateValue, PR_USEC_PER_MSEC);
LL_MUL(usecs, modDate, intermediateValue);
PR_ExplodeTime(usecs, PR_LocalTimeParameters, &prtime);