Index: Source/platform/mhtml/MHTMLArchive.cpp |
diff --git a/Source/platform/mhtml/MHTMLArchive.cpp b/Source/platform/mhtml/MHTMLArchive.cpp |
index e22207361fd23399127fff7b861bb3bfe97b3784..fe1ecc39b2080e043e174b9b53cb1c837f2daf7d 100644 |
--- a/Source/platform/mhtml/MHTMLArchive.cpp |
+++ b/Source/platform/mhtml/MHTMLArchive.cpp |
@@ -31,6 +31,7 @@ |
#include "config.h" |
#include "platform/mhtml/MHTMLArchive.h" |
+#include "platform/DateComponents.h" |
#include "platform/MIMETypeRegistry.h" |
#include "platform/SerializedResource.h" |
#include "platform/SharedBuffer.h" |
@@ -39,7 +40,6 @@ |
#include "platform/weborigin/SchemeRegistry.h" |
#include "wtf/CryptographicallyRandomNumber.h" |
#include "wtf/DateMath.h" |
-#include "wtf/GregorianDateTime.h" |
#include "wtf/text/Base64.h" |
#include "wtf/text/StringBuilder.h" |
@@ -124,9 +124,9 @@ PassRefPtr<SharedBuffer> MHTMLArchive::generateMHTMLData(const Vector<Serialized |
String boundary = generateRandomBoundary(); |
String endOfResourceBoundary = "--" + boundary + "\r\n"; |
- GregorianDateTime now; |
- now.setToCurrentLocalTime(); |
- String dateString = makeRFC2822DateString(now.weekDay(), now.monthDay(), now.month(), now.year(), now.hour(), now.minute(), now.second(), now.utcOffset() / 60); |
+ DateComponents now; |
+ now.setMillisecondsSinceEpochForDateTime(currentTimeMS()); |
+ String dateString = makeRFC2822DateString(now.weekDay(), now.monthDay(), now.month(), now.fullYear(), now.hour(), now.minute(), now.second(), 0); |
StringBuilder stringBuilder; |
stringBuilder.append("From: <Saved by WebKit>\r\n"); |