{ "id": "62094", "key": "TIMOB-1462", "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": "13417", "description": "Sprint 2012-13 API", "name": "Sprint 2012-13 API", "archived": true, "released": true, "releaseDate": "2012-07-01" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-02T15:40:06.000+0000", "created": "2011-04-15T02:53:30.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "api", "countdown", "defect", "ios", "iphone", "picker", "qe-review", "qe-testadded" ], "versions": [], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2013-12-06T10:26:19.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}
A customer submitted a ticket in the helpdesk that with iOS 4\r\nand 1.4.0 the count down picker is not returning the proper values.\r\nI see the same behavior.
\r\nCODE\r\nvar win1 = Titanium.UI.createWindow({
\r\nbackgroundColor:'black'
\r\n
\r\n});
\r\nvar duration = 60000 * 5; // 5 minutes
var picker = Ti.UI.createPicker({
\r\ntype:Ti.UI.PICKER_TYPE_COUNT_DOWN_TIMER,\r\ncountDownDuration:duration
\r\n
\r\n});
\r\npicker.selectionIndicator = true;
win1.add(picker);
picker.addEventListener('change',function(e)
\r\n{
\r\nTi.API.info('value = ' + picker.value);
\r\n
\r\n});
\r\nwin1.open({modal:false});
\r\n########################
CONSOLE OUTPUT
\r\n[INFO] value = Wed Nov 29 0000 23:58:58\r\nGMT-0800 (PST) [INFO] value = Wed Nov 29 0000 23:59:58\r\nGMT-0800 (PST) [INFO] value = Thu Nov 30 0000 00:00:58\r\nGMT-0800 (PST) [INFO] value = Thu Nov 30 0000 00:01:58\r\nGMT-0800 (PST) [INFO] value = Thu Nov 30 0000 00:02:58\r\nGMT-0800 (PST)