| Index: Source/core/dom/Document.cpp
|
| diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
|
| index f328c474c2d9872d9b363ca33847a5a3a7a17903..aacaa20bd47abc10a137703ec8334bfc2ae27140 100644
|
| --- a/Source/core/dom/Document.cpp
|
| +++ b/Source/core/dom/Document.cpp
|
| @@ -197,6 +197,7 @@
|
| #include "platform/weborigin/SecurityOrigin.h"
|
| #include "public/platform/Platform.h"
|
| #include "wtf/CurrentTime.h"
|
| +#include "wtf/DateMath.h"
|
| #include "wtf/HashFunctions.h"
|
| #include "wtf/MainThread.h"
|
| #include "wtf/StdLibExtras.h"
|
| @@ -4085,7 +4086,7 @@ String Document::lastModified() const
|
| if (DocumentLoader* documentLoader = loader()) {
|
| const AtomicString& httpLastModified = documentLoader->response().httpHeaderField("Last-Modified");
|
| if (!httpLastModified.isEmpty()) {
|
| - date.setMillisecondsSinceEpochForDateTime(parseDate(httpLastModified));
|
| + date.setMillisecondsSinceEpochForDateTime(convertToLocalTime(parseDate(httpLastModified)));
|
| foundDate = true;
|
| }
|
| }
|
| @@ -4094,7 +4095,7 @@ String Document::lastModified() const
|
| // specificiation tells us to read the last modification date from the file
|
| // system.
|
| if (!foundDate)
|
| - date.setMillisecondsSinceEpochForDateTime(currentTimeMS());
|
| + date.setMillisecondsSinceEpochForDateTime(convertToLocalTime(currentTimeMS()));
|
| return String::format("%02d/%02d/%04d %02d:%02d:%02d", date.month() + 1, date.monthDay(), date.fullYear(), date.hour(), date.minute(), date.second());
|
| }
|
|
|
|
|