| Index: Source/core/dom/Document.cpp
|
| diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
|
| index eba7ecdfb87d0d206d3d79923ba3816eb5daec3d..1c04394026ea54be72e1e3239c3c2d07588e0c95 100644
|
| --- a/Source/core/dom/Document.cpp
|
| +++ b/Source/core/dom/Document.cpp
|
| @@ -195,6 +195,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"
|
| @@ -4078,7 +4079,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;
|
| }
|
| }
|
| @@ -4087,7 +4088,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());
|
| }
|
|
|
|
|