[SCM] WebKit Debian packaging branch, webkit-1.1, updated. upstream/1.1.19-706-ge5415e9

eric at webkit.org eric at webkit.org
Thu Feb 4 21:29:19 UTC 2010


The following commit has been merged in the webkit-1.1 branch:
commit 88a00c31dc69795beaab41765c27dffdc5b57ce8
Author: eric at webkit.org <eric at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Wed Jan 27 12:17:41 2010 +0000

    2010-01-27  Kwang Yul Seo  <skyul at company100.net>
    
            Reviewed by Eric Seidel.
    
            [BREWMP] Don't use time function
            https://bugs.webkit.org/show_bug.cgi?id=33577
    
            Calling time(0) in BREW devices causes a crash because time
            is not properly ported in most devices. Cast currentTime() to
            time_t to get the same result as time(0).
    
            * wtf/DateMath.cpp:
            (WTF::calculateUTCOffset):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@53921 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/JavaScriptCore/ChangeLog b/JavaScriptCore/ChangeLog
index 970659b..029a237 100644
--- a/JavaScriptCore/ChangeLog
+++ b/JavaScriptCore/ChangeLog
@@ -1,3 +1,17 @@
+2010-01-27  Kwang Yul Seo  <skyul at company100.net>
+
+        Reviewed by Eric Seidel.
+
+        [BREWMP] Don't use time function
+        https://bugs.webkit.org/show_bug.cgi?id=33577
+
+        Calling time(0) in BREW devices causes a crash because time
+        is not properly ported in most devices. Cast currentTime() to
+        time_t to get the same result as time(0).
+
+        * wtf/DateMath.cpp:
+        (WTF::calculateUTCOffset):
+
 2010-01-27  Alexey Proskuryakov  <ap at apple.com>
 
         Revert r53899 (HashMap<AtomicStringImpl*, Value> key checks) and subsequent build fixes,
diff --git a/JavaScriptCore/wtf/DateMath.cpp b/JavaScriptCore/wtf/DateMath.cpp
index 6f4c862..b9a0207 100644
--- a/JavaScriptCore/wtf/DateMath.cpp
+++ b/JavaScriptCore/wtf/DateMath.cpp
@@ -379,7 +379,11 @@ int equivalentYearForDST(int year)
 
 static int32_t calculateUTCOffset()
 {
+#if PLATFORM(BREWMP)
+    time_t localTime = static_cast<time_t>(currentTime());
+#else
     time_t localTime = time(0);
+#endif
     tm localt;
     getLocalTime(&localTime, &localt);
 

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list