Title: [123435] trunk/Source/WebCore
Revision
123435
Author
[email protected]
Date
2012-07-24 01:02:24 -0700 (Tue, 24 Jul 2012)

Log Message

[Qt] Fix conversion from GregorianDateTime to QTime
https://bugs.webkit.org/show_bug.cgi?id=92068

Reviewed by Simon Hausmann.

* bridge/qt/qt_runtime.cpp:
(JSC::Bindings::convertValueToQVariant):
* bridge/qt/qt_runtime_qt4.cpp:
(JSC::Bindings::convertValueToQVariant):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (123434 => 123435)


--- trunk/Source/WebCore/ChangeLog	2012-07-24 07:37:44 UTC (rev 123434)
+++ trunk/Source/WebCore/ChangeLog	2012-07-24 08:02:24 UTC (rev 123435)
@@ -1,3 +1,15 @@
+2012-07-24  Patrick Gansterer  <[email protected]>
+
+        [Qt] Fix conversion from GregorianDateTime to QTime
+        https://bugs.webkit.org/show_bug.cgi?id=92068
+
+        Reviewed by Simon Hausmann.
+
+        * bridge/qt/qt_runtime.cpp:
+        (JSC::Bindings::convertValueToQVariant):
+        * bridge/qt/qt_runtime_qt4.cpp:
+        (JSC::Bindings::convertValueToQVariant):
+
 2012-07-24  Arko Saha  <[email protected]>
 
         Microdata: Implement PropertyNodeList interface.

Modified: trunk/Source/WebCore/bridge/qt/qt_runtime.cpp (123434 => 123435)


--- trunk/Source/WebCore/bridge/qt/qt_runtime.cpp	2012-07-24 07:37:44 UTC (rev 123434)
+++ trunk/Source/WebCore/bridge/qt/qt_runtime.cpp	2012-07-24 08:02:24 UTC (rev 123435)
@@ -510,7 +510,7 @@
                     ret = QDate(gdt.year() + 1900, gdt.month() + 1, gdt.monthDay());
                     dist = 1;
                 } else {
-                    ret = QTime(gdt.hour() + 1900, gdt.minute(), gdt.second());
+                    ret = QTime(gdt.hour(), gdt.minute(), gdt.second());
                     dist = 2;
                 }
             } else if (type == Number) {

Modified: trunk/Source/WebCore/bridge/qt/qt_runtime_qt4.cpp (123434 => 123435)


--- trunk/Source/WebCore/bridge/qt/qt_runtime_qt4.cpp	2012-07-24 07:37:44 UTC (rev 123434)
+++ trunk/Source/WebCore/bridge/qt/qt_runtime_qt4.cpp	2012-07-24 08:02:24 UTC (rev 123435)
@@ -510,7 +510,7 @@
                     ret = QDate(gdt.year() + 1900, gdt.month() + 1, gdt.monthDay());
                     dist = 1;
                 } else {
-                    ret = QTime(gdt.hour() + 1900, gdt.minute(), gdt.second());
+                    ret = QTime(gdt.hour(), gdt.minute(), gdt.second());
                     dist = 2;
                 }
             } else if (type == Number) {
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to