{ "id": "84384", "key": "AC-2899", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2011-12-30T12:36:19.000+0000", "created": "2011-12-30T09:37:33.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "updated": "2016-03-08T07:47:52.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": "h2. Problem\r\n\r\nAn instance of Date does not have a UTC() method. On iOS and in Normal JavaScript(TM), UTC() exists and returns the correct value.\r\n\r\nh2. Test case\r\n\r\n{code:lang=javascript|title=app.js}\r\nvar thisDate=Date.UTC(2005,7,8);\r\nTi.API.info(\"Number of milliseconds from January 1, 1970 to August 8, 2005, according to universal time \" + thisDate);\r\n{code}\r\n\r\nh2. Output / Logs\r\n\r\n{code:lang=none|title=logcat}\r\n1064 TiAPI I Number of milliseconds from January 1, 1970 to August 8, 2005, according to universal time 1123459200000\r\n{code}\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android: date_instance.UTC() is not a method", "creator": { "name": "ziggythehamster", "key": "ziggythehamster", "displayName": "Keith Gable", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ziggythehamster", "key": "ziggythehamster", "displayName": "Keith Gable", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "* Titanium version?\r\n* Android version?\r\n* Runtime?\r\n* OSX 10.8.0", "comment": { "comments": [ { "id": "177715", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Keith\r\n\r\nI am unable to reproduce this issue.\r\n\r\nIn order for me to accept any further tickets from you, all the fields must be complete and the body must include all the information detailed in the [JIRA Ticket Checklist|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist].\r\n\r\nI have reformatted this ticket to give you a guide for future reports. If your future tickets are well-formed, then I can get them escalated without any delays.\r\n\r\nThank you for your cooperation and understanding about why this is necessary.\r\n\r\nCheers\r\n\r\n\r\n\r\n", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-30T11:46:18.000+0000", "updated": "2011-12-30T11:46:18.000+0000" }, { "id": "177716", "author": { "name": "ziggythehamster", "key": "ziggythehamster", "displayName": "Keith Gable", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Actually, upon testing this again, I can't get it to reproduce either. Go ahead and close this invalid :)", "updateAuthor": { "name": "ziggythehamster", "key": "ziggythehamster", "displayName": "Keith Gable", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-30T12:18:13.000+0000", "updated": "2011-12-30T12:18:13.000+0000" }, { "id": "177719", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "The error was probably caused by {{.UTC()}} being called on a date object instance, whereas it is actually a method of the [Date|https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date] constructor.\r\n\r\nI hope you can appreciate the time it can take us to reproduce issues that are any more complex than this, and thus why a test case is always required. Please refer to [Creating a Test Case|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-CreatingaTestCase] for guidance.\r\n\r\nThanks", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-30T12:35:41.000+0000", "updated": "2011-12-30T12:35:41.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }