[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677

cblu cblu at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 05:51:07 UTC 2009


The following commit has been merged in the debian/unstable branch:
commit 910f401ba1bee5b35cf7b3ff10c81e195533df48
Author: cblu <cblu at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Wed Oct 24 17:57:57 2001 +0000

    Fixed bug in setCurrentDate
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@385 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/kwq/KWQDateTime.mm b/WebCore/kwq/KWQDateTime.mm
index b4c3d10..2e849aa 100644
--- a/WebCore/kwq/KWQDateTime.mm
+++ b/WebCore/kwq/KWQDateTime.mm
@@ -199,8 +199,7 @@ void QDate::setCurrentDate()
     
     time(&currentDate);
     localDate = localtime(&currentDate);
-    dateDays = greg2jul(localDate->tm_year, localDate->tm_mon, localDate->tm_mday);
-    
+    dateDays = greg2jul(localDate->tm_year + 1900, localDate->tm_mon + 1, localDate->tm_mday);
 }
 
 // greg2jul and jul2greg algorithms are copied from Communications of the ACM, Vol 6, No 8
diff --git a/WebCore/src/kwq/KWQDateTime.mm b/WebCore/src/kwq/KWQDateTime.mm
index b4c3d10..2e849aa 100644
--- a/WebCore/src/kwq/KWQDateTime.mm
+++ b/WebCore/src/kwq/KWQDateTime.mm
@@ -199,8 +199,7 @@ void QDate::setCurrentDate()
     
     time(&currentDate);
     localDate = localtime(&currentDate);
-    dateDays = greg2jul(localDate->tm_year, localDate->tm_mon, localDate->tm_mday);
-    
+    dateDays = greg2jul(localDate->tm_year + 1900, localDate->tm_mon + 1, localDate->tm_mday);
 }
 
 // greg2jul and jul2greg algorithms are copied from Communications of the ACM, Vol 6, No 8

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list