Add WTF::getCurrentLocalTime()
authorparoga@webkit.org <paroga@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 5 Apr 2012 06:40:16 +0000 (06:40 +0000)
committerparoga@webkit.org <paroga@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 5 Apr 2012 06:40:16 +0000 (06:40 +0000)
commitc09d77eba8bee45bef160ad641b5cc86e04af649
tree76a87ab81fe536867e9fca67b1a6997f6b3b0b5b
parent046abc154392c76f4d5b2ebe80ebfa05b7bb9d7f
Add WTF::getCurrentLocalTime()
https://bugs.webkit.org/show_bug.cgi?id=83164

Reviewed by Alexey Proskuryakov.

Replace the calls to WTF::getLocalTime() with time(0) with the new function.
This allows us to use Win32 API on windows to get the same result in a next step.

Source/JavaScriptCore:

* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:
* runtime/DateConstructor.cpp:
(JSC::callDate):

Source/WebCore:

* html/FTPDirectoryDocument.cpp:
(WebCore::processFileDateString):
* loader/archive/mhtml/MHTMLArchive.cpp:
(WebCore::MHTMLArchive::generateMHTMLData):

Source/WTF:

Also remove the inline keyword from WTF::getLocalTime(), since there is no need for
it and it will make the later Win32 API changes easier.

* WTF.gyp/WTF.gyp:
* wtf/CurrentTime.cpp:
(WTF::getLocalTime):
(WTF::getCurrentLocalTime):
* wtf/CurrentTime.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@113295 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def
Source/JavaScriptCore/runtime/DateConstructor.cpp
Source/WTF/ChangeLog
Source/WTF/WTF.gyp/WTF.gyp
Source/WTF/wtf/CurrentTime.cpp
Source/WTF/wtf/CurrentTime.h
Source/WebCore/ChangeLog
Source/WebCore/html/FTPDirectoryDocument.cpp
Source/WebCore/loader/archive/mhtml/MHTMLArchive.cpp