{ "id": "119889", "key": "TIMOB-15201", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2013-09-13T03:30:15.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "date", "reprod" ], "versions": [ { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:40.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{code:javascript}\r\nvar win = Ti.UI.createWindow(),\r\n\tdate = new Date(),\r\n\ttoday = new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours() + 1, 0, 0, 0),\r\n\tsomeDate = new Date(1876, 1, 1, 11, 46, 0, 0);\r\n\t\r\nconsole.log(\"TODAY: \"+today);\r\nconsole.log(\"SOME DATE: \"+someDate);\r\n\r\nfunction checkDate(e)\r\n{\r\n\tconsole.log(\"> TODAY: \"+e.today);\r\n\tconsole.log(\"> SOME DATE: \"+e.someDate);\r\n}\r\n\r\n\r\nTi.App.addEventListener(\"forExample\", checkDate);\r\nTi.App.fireEvent(\"forExample\", {today: today, someDate: someDate});\r\n\r\nwin.open();\r\n{code}\r\n\r\n*OUT PUT*\r\n[INFO] : TODAY: Fri Sep 13 2013 06:00:00 GMT+0200 (CEST) // RIGHT\r\n[INFO] : SOME DATE: Tue Feb 01 1876 11:46:00 GMT+0100 (CET) // RIGHT\r\n\r\n[INFO] : > TODAY: Fri Sep 13 2013 06:00:18 GMT+0200 (CEST) // WRONG\r\n[INFO] : > SOME DATE: Tue Feb 01 1876 11:45:50 GMT+0100 (CET) // WRONG", "attachment": [], "flagged": false, "summary": "iOS: Same variable display different values", "creator": { "name": "sko", "key": "sko", "displayName": "Matej", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "environment": "Macbook Pro, OSX 10.7.5\r\niOS Simulator v. 6.0 (369.2) / v 7 \r\nTi: 3.1.1 GA / 3.1.3.GA", "comment": { "comments": [ { "id": "271366", "author": { "name": "sko", "key": "sko", "displayName": "Matej", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Why has been changed my (Reporter) name? + Components: iOS\r\n\r\n*IT IS NOT ONLY ANDROID!*", "updateAuthor": { "name": "sko", "key": "sko", "displayName": "Matej", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-16T21:35:29.000+0000", "updated": "2013-09-18T00:19:07.000+0000" }, { "id": "318387", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces \r\nTitanium Command-Line Interface, \r\nCLI version 3.3.0, \r\nTitanium SDK version 3.3.0.GA \r\niOS SDK: 7.1 \r\niOS iPhone Simulator: 7.1", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-13T06:38:12.000+0000", "updated": "2014-08-13T06:38:12.000+0000" }, { "id": "422424", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am able to reproduce this issue with the following environment;\r\niPhone 7 (10.2)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1.v20170620103414\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.1\r\nTi CLI 5.0.13\r\nAlloy 1.9.11\r\nArrow 2.0.0\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-20T23:03:40.000+0000", "updated": "2017-06-20T23:03:40.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }