Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix consistency of parsing ISO 8601 date strings.
Use the UTC timespec for strings with no time zone qualifier as V8 does so we don't get different QDateTime in bindings depending on whether the string was bound directly, or parsed by constructing a new JS Date object. Task-number: QTBUG-24895 Change-Id: I8f74dae418aaeeaf06df33fe58ab4e3e3fea791b Reviewed-by: Chris Adams <christopher.adams@nokia.com>
- Loading branch information
Andrew den Exter
authored and
Qt by Nokia
committed
Mar 21, 2012
1 parent
d6bc3b5
commit b2722ab
Showing
8 changed files
with
68 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import Qt.test 1.0 | ||
|
||
MyTypeObject { | ||
dateProperty: if(1) new Date("1982-11-25") | ||
dateTimeProperty: if(1) new Date("2009-05-12T13:22:01") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import Qt.test 1.0 | ||
|
||
MyTypeObject { | ||
dateProperty: if(1) "1982-11-25Z" | ||
dateTimeProperty: if(1) "2009-05-12T13:22:01Z" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import Qt.test 1.0 | ||
|
||
MyTypeObject { | ||
dateProperty: if(1) new Date("1982-11-25Z") | ||
dateTimeProperty: if(1) new Date("2009-05-12T13:22:01Z") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import Qt.test 1.0 | ||
|
||
MyTypeObject { | ||
dateProperty: if(1) "1982-11-25Z" | ||
dateTimeProperty: if(1) "2009-05-12T15:22:01+02:00" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import Qt.test 1.0 | ||
|
||
MyTypeObject { | ||
dateProperty: if(1) new Date("1982-11-25") | ||
dateTimeProperty: if(1) new Date("2009-05-12T15:22:01+02:00") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import Qt.test 1.0 | ||
import QtQuick 2.0 | ||
|
||
MyTypeObject { | ||
Component.onCompleted: { | ||
dateProperty = new Date("1982-11-25") | ||
dateTimeProperty = new Date("2009-05-12T13:22:01") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters