{ "id": "139810", "key": "AC-1660", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2014-11-18T09:31:54.000+0000", "created": "2014-11-15T16:16:44.000+0000", "labels": [], "versions": [], "issuelinks": [ { "id": "43070", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "139254", "key": "TIMOB-18047", "fields": { "summary": "Titanium JS engine does not handle russian winter time shift 25.oct 2014 properly", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "updated": "2016-03-08T07:38:09.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": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "I have 'Europe/Moscow' set as my current timezone in OS. Inside Titanium app following code prints -1620 (+27 hours, obviously incorrect) instead of -180.\r\n{code}\r\nconsole.log(new Date().getTimezoneOffset());\r\n{code}\r\nIf I, for example, set system timezone to Central European Time I get correct result (-60)", "attachment": [], "flagged": false, "summary": "new Date().getTimezoneOffeset() returns invalid offset for 'Europe/Moscow' timezone", "creator": { "name": "lltwox", "key": "lltwox", "displayName": "Alexander Golubev", "active": true, "timeZone": "Europe/Moscow" }, "subtasks": [], "reporter": { "name": "lltwox", "key": "lltwox", "displayName": "Alexander Golubev", "active": true, "timeZone": "Europe/Moscow" }, "environment": "TiSDK 3.4.1.GA\r\nTiCLI 3.4.0\r\niOS 8.1\r\nIPhone 5s Simulator\r\nMac OS X 10.9.5", "comment": { "comments": [ { "id": "332677", "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:54.000+0000", "updated": "2014-11-18T09:31:54.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }