{ "id": "144210", "key": "AC-1536", "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": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2015-02-05T06:09:04.000+0000", "created": "2015-02-04T16:41:36.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "updated": "2016-03-08T07:37:59.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": "Reproduce\r\n========\r\nconsole.log(new Date(\"2015-01-12T12:29:11+0000\"));\r\n\r\n\r\nActual\r\n=====\r\n1970-01-01 00:00:00 +0000\r\n\r\n\r\nExpected\r\n=======\r\n2015-01-12 12:29:11 +0000\r\n\r\n\r\nNote that a date such as \"2015-01-12T12:29:11+00:00\" is recognized, i.e. with a full colon included in the timezone component. However, if the string representation of the Date object does not include a colon, why should it expect a colon? Also, Google Chrome recognizes the date without a colon, if that is of any significance.\r\n", "attachment": [], "flagged": false, "summary": "ISO 8601 date string not recognized by Date constructor", "creator": { "name": "erisco", "key": "erisco", "displayName": "Eric", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "erisco", "key": "erisco", "displayName": "Eric", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac OSX Version 10.10.2 (14C109) \r\nTitanium Studio, build: 3.4.1.201410281727 \r\nAlloy 1.5.1 \r\nSDK 3.4.1.GA \r\niOS iPhone", "comment": { "comments": [ { "id": "342205", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Hi,\r\n\r\nIt is a standard format with colon in timezone for ISO 8601 date by W3C. http://www.w3.org/TR/NOTE-datetime.\r\n\r\nConstructor only recognise the standard format, no matter how the date display in result. \r\n\r\nRegards,\r\nShuo", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2015-02-05T06:08:54.000+0000", "updated": "2015-02-05T06:08:54.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }