Details
-
Bug
-
Resolution: Won't Do
-
Not Evaluated
-
None
-
5.2.1
-
None
Description
1) Change the timezone to one with a negative UTC time offset, such as Alaska(-9).
2) Run the following code:
property var a: new Date(); property variant b: new Date(); Component.onCompleted: { var s=""; s="{ Date: "+a+"; Time: "+a.getTime()+"; UTC-Offset"+a.getTimezoneOffset()+";} ";console.log(s); s="{ Date: "+b+"; Time: "+b.getTime()+"; UTC-Offset"+b.getTimezoneOffset()+";} ";console.log(s); }
3) This the debug output:
{ Date: Thu Nov 19 17:51:04 2150 GMT+119303828; Time: 1413228168899; UTC-Offset-71582308.26666667;} { Date: Mon Dec 27 00:19:20 2286 GMT+119303728; Time: 5708199064899; UTC-Offset-71582248.26666667;}
I'm using http://qtlab.blackberry.com/downloads/ndk_10.2.0_overlay/qt521_20140317/ on a Z10 with BB 10.3.1 and on a Q10 with BB 10.2.1