Skip to content
  • paroga@webkit.org's avatar
    Add WTF::getCurrentLocalTime() · c09d77eb
    paroga@webkit.org authored
    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
    c09d77eb