{ "id": "127379", "key": "AC-874", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2014-09-04T07:38:21.000+0000", "created": "2014-03-06T20:36:04.000+0000", "labels": [ "api", "broken", "proxy", "time" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:37:10.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": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "The `getValue` method always returns the current time. Assumedly, this has been mapped to the android method: `TimePicker.getCurrentTime` which only returns the current time.\r\n\r\n", "attachment": [ { "id": "46713", "filename": "time-picker-text.tar.gz", "author": { "name": "lsdriscoll", "key": "lsdriscoll", "displayName": "Lee Driscoll", "active": true, "timeZone": "Europe/London" }, "created": "2014-03-18T11:36:27.000+0000", "size": 5883521, "mimeType": "application/x-gzip" } ], "flagged": false, "summary": "Time Picker value is always current date", "creator": { "name": "lsdriscoll", "key": "lsdriscoll", "displayName": "Lee Driscoll", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "lsdriscoll", "key": "lsdriscoll", "displayName": "Lee Driscoll", "active": true, "timeZone": "Europe/London" }, "environment": "OS: Debian 7 64 Bit\r\nDevice: Nexus 5\r\nTi SDK: 3.2.1 GA", "comment": { "comments": [ { "id": "296265", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Please provide a simple and runnable test case to reproduce this issue.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-10T06:33:58.000+0000", "updated": "2014-03-10T06:33:58.000+0000" }, { "id": "297476", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Resolving this ticket as the reporter has not provided requested information.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-17T02:16:19.000+0000", "updated": "2014-03-17T02:16:19.000+0000" }, { "id": "297514", "author": { "name": "lsdriscoll", "key": "lsdriscoll", "displayName": "Lee Driscoll", "active": true, "timeZone": "Europe/London" }, "body": "Here is the test case: \r\n\r\n{code:xml|title=timePickerDialog.xml}\r\n\r\n \r\n\r\n{code}\r\n\r\n{code:xml|title=form.xml}\r\n\r\n \r\n \r\n \r\n\r\n{code}\r\n\r\n{code:javascript|title=form.js}\r\nvar timePickerController = Alloy.createController('fields/timePickerDialog', {\r\n\tformat24: true\r\n});\r\nfunction openTimePicker(e){\r\n\ttimePickerController.showForTextField(e.source);\r\n}\r\n{code}\r\n\r\n{code:javascript|title=timePickerDialog.js}\r\nfunction showForTextField(textField, opts){\r\n\r\n\topts = opts || {};\r\n\r\n\topts.callback = function(e) {\r\n\t\tif(!e.cancel) {\r\n\t\t\tvar timeValue = e.value;\r\n\t\t\ttextField.value = timeValue.getHours() + ':' + timeValue.getMinutes();\r\n\t\t\ttextField.blur();\r\n\t\t}\r\n\t};\r\n\r\n\ttimePickerDialog.show(opts);\r\n}\r\n{code}", "updateAuthor": { "name": "lsdriscoll", "key": "lsdriscoll", "displayName": "Lee Driscoll", "active": true, "timeZone": "Europe/London" }, "created": "2014-03-17T08:58:17.000+0000", "updated": "2014-03-17T08:59:28.000+0000" }, { "id": "297597", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks for providing the sample test case. I tried to run the code as it is but its throwing errors. Can you please confirm that you had included all the files? It would be helpful if you can zip up your test project and attach to this ticket.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-17T18:37:43.000+0000", "updated": "2014-03-18T05:07:55.000+0000" }, { "id": "297691", "author": { "name": "lsdriscoll", "key": "lsdriscoll", "displayName": "Lee Driscoll", "active": true, "timeZone": "Europe/London" }, "body": "I tried to attach a tar of my project but it's 40-something mb, so I 've just attached my app folder", "updateAuthor": { "name": "lsdriscoll", "key": "lsdriscoll", "displayName": "Lee Driscoll", "active": true, "timeZone": "Europe/London" }, "created": "2014-03-18T11:34:27.000+0000", "updated": "2014-03-18T11:34:27.000+0000" }, { "id": "297692", "author": { "name": "lsdriscoll", "key": "lsdriscoll", "displayName": "Lee Driscoll", "active": true, "timeZone": "Europe/London" }, "body": "Also, through putting together the sample project I found another bug.\n\nI really don't have time to do a full bug report at the moment but it's damn easy to explain:\n\nIf a form field tries to acquire focus before it's containing window has been opened the app dies without an error.\n\nTo test this, remove the focusable=\"false\" flag from the TextField in index.xml (from the attached tar)", "updateAuthor": { "name": "lsdriscoll", "key": "lsdriscoll", "displayName": "Lee Driscoll", "active": true, "timeZone": "Europe/London" }, "created": "2014-03-18T11:39:02.000+0000", "updated": "2014-03-18T11:39:02.000+0000" }, { "id": "298412", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "Until ALOY-263 is merged, you can't create date/time type pickers in XML. Edit: I guess my comment wasn't directly related to the problem you're facing. But I'll leave it here anyway to let you know that you'll be able to create these pickers in XML soon.", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-03-24T14:36:30.000+0000", "updated": "2014-03-24T14:37:45.000+0000" }, { "id": "298423", "author": { "name": "lsdriscoll", "key": "lsdriscoll", "displayName": "Lee Driscoll", "active": true, "timeZone": "Europe/London" }, "body": "@Tim +1 for creating the pickers via XML, that'll be a great addition", "updateAuthor": { "name": "lsdriscoll", "key": "lsdriscoll", "displayName": "Lee Driscoll", "active": true, "timeZone": "Europe/London" }, "created": "2014-03-24T16:20:41.000+0000", "updated": "2014-03-24T16:20:41.000+0000" }, { "id": "298522", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Lee - Can you please provide a test case that does not create date / time picker in XML so that we can troubleshoot your current issue?", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-25T04:15:02.000+0000", "updated": "2014-03-25T04:15:02.000+0000" }, { "id": "298547", "author": { "name": "lsdriscoll", "key": "lsdriscoll", "displayName": "Lee Driscoll", "active": true, "timeZone": "Europe/London" }, "body": "Ritu - The attached project works for me.", "updateAuthor": { "name": "lsdriscoll", "key": "lsdriscoll", "displayName": "Lee Driscoll", "active": true, "timeZone": "Europe/London" }, "created": "2014-03-25T10:52:05.000+0000", "updated": "2014-03-25T10:52:05.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }