{ "id": "139254", "key": "TIMOB-18047", "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": [ { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" }, { "id": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-12-04T16:53:23.000+0000", "created": "2014-11-07T11:43:42.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [ { "id": "43070", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "139810", "key": "AC-1660", "fields": { "summary": "new Date().getTimezoneOffeset() returns invalid offset for 'Europe/Moscow' timezone", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2015-01-07T02:27:43.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [], "description": "JS Date.setDate() looses a day when it is using for dates beyond to oct 25.\r\n\r\nFor instance, there's a log from my IOS simulator (OSX Yosemite, Moscow Standard Time, time is taken from NTP server by OSX). \r\n\r\ncode:\r\nvar date2 = new Date(2014,09,25,5,01,01); // 25 october\r\nTi.API.info(\" date2-1 \", date2, \"day\",date2.getDate(), \"ts\", date2.getTime());\r\n\r\nlog output:\r\n\r\n[INFO] : date2-1 2014-10-25 01:01:01 +0000 day 25 ts 1414198861000\r\n// ok now, oct 25. UTC time shift is 4 hrs \r\n\r\ndate2 = new Date(2014,09,26,5,01,01);\r\nTi.API.info(\" date2-2 \", date2, \"day\",date2.getDate(), \"ts\", date2.getTime());\r\n[INFO] : date2-2 2014-10-25 02:01:01 +0000 day 25 ts 1414202461000\r\n// THIS IS WRONG! still 25 october, UTC time shift is 24+3 hours!\r\n\r\nI see the same picture on devices, too", "attachment": [], "flagged": false, "summary": "Titanium JS engine does not handle russian winter time shift 25.oct 2014 properly", "creator": { "name": "yurys", "key": "yurys", "displayName": "Yury Skaletskiy", "active": true, "timeZone": "Europe/Moscow" }, "subtasks": [], "reporter": { "name": "yurys", "key": "yurys", "displayName": "Yury Skaletskiy", "active": true, "timeZone": "Europe/Moscow" }, "environment": "Titanium SDK 3.4.0/iOS 8.0/8.1 (both simulator and device)/Android 4.x", "closedSprints": [ { "id": 126, "state": "closed", "name": "2018 Sprint 05 SDK", "startDate": "2018-02-25T19:38:08.926Z", "endDate": "2018-03-11T18:38:00.000Z", "completeDate": "2018-03-11T22:06:01.520Z", "originBoardId": 100 } ], "comment": { "comments": [ { "id": "332676", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-11-18T09:31:05.000+0000", "updated": "2014-11-18T09:31:05.000+0000" }, { "id": "334855", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This has been fixed with the TiCore update", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-12-04T16:53:23.000+0000", "updated": "2014-12-04T16:53:23.000+0000" }, { "id": "338112", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified fix on:\r\n\r\nMac OSX 10.10.1\r\nAppcelerator Studio, build: 3.4.1.201410281743\r\nTitanium SDK build: 3.5.0.v20150106102524\r\nTitanium CLI, build: 3.4.1\r\nAlloy: 1.5.1\r\nXcode 6.1.1\r\niPhone 6 Plus (8.1), iPhone 4s Simulator (8.1)\r\n\r\n{code}\r\nvar date2 = new Date(2014,09,26,5,01,01);\r\nTi.API.info(\" date2-2 \", date2, \"day\",date2.getDate(), \"ts\", date2.getTime());\r\n{code}\r\n\r\nWhen using the above code the console output is now *date2-2 2014-10-26 02:01:01 +0000 day 26 ts 1414288861000*, as expected.\r\n\r\nClosing ticket.", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2015-01-07T02:27:34.000+0000", "updated": "2015-01-07T02:27:34.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }