{ "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\n

var win1 = Titanium.UI.createWindow({

\r\n
\r\nbackgroundColor:'black'\r\n
\r\n

});

\r\n

var duration = 60000 * 5; // 5 minutes

\r\n

var picker = Ti.UI.createPicker({

\r\n
\r\ntype:Ti.UI.PICKER_TYPE_COUNT_DOWN_TIMER,\r\ncountDownDuration:duration\r\n
\r\n

});

\r\n

picker.selectionIndicator = true;

\r\n

win1.add(picker);

\r\n

picker.addEventListener('change',function(e)
\r\n{

\r\n
\r\nTi.API.info('value = ' + picker.value);\r\n
\r\n

});

\r\n

win1.open({modal:false});
\r\n########################

\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)

{html}", "attachment": [], "flagged": false, "summary": "Countdown Picker returns the wrong values in 1.4.0 & sdk 4", "creator": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "200064", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Test case\r\n{code}\r\nvar win1 = Titanium.UI.createWindow({\r\n\tbackgroundColor:'black'\r\n});\r\n\r\nvar duration = 60000 * 5; // 5 minutes\r\n\r\nvar picker = Ti.UI.createPicker({\r\n\ttype:Ti.UI.PICKER_TYPE_COUNT_DOWN_TIMER,\r\n\tcountDownDuration:duration\r\n});\r\n\r\npicker.selectionIndicator = true;\r\n\r\nwin1.add(picker);\r\n\r\npicker.addEventListener('change',function(e)\r\n{\r\n\tTi.API.info('change');\r\n\tTi.API.info('Obj countDownDuration = ' + picker.countDownDuration);\r\n\tTi.API.info('Evt countDownDuration = ' + e.countDownDuration);\r\n});\r\n\r\n\r\nwin1.open();\r\n{code}", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-06-25T11:39:53.000+0000", "updated": "2012-06-25T11:39:53.000+0000" }, { "id": "200067", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending https://github.com/appcelerator/titanium_mobile/pull/2465", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-06-25T11:42:06.000+0000", "updated": "2012-06-25T11:42:06.000+0000" }, { "id": "201255", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull merged.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-02T15:40:06.000+0000", "updated": "2012-07-02T15:40:06.000+0000" }, { "id": "229790", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 3.0.0.v20121130200208 with iPhone 4 5.1.1\r\n\r\n", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-04T05:21:59.000+0000", "updated": "2012-12-04T05:21:59.000+0000" }, { "id": "282856", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Anvil test case added.\nPR Link:\nhttps://github.com/appcelerator/titanium_mobile/pull/5078", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-06T10:26:19.000+0000", "updated": "2013-12-06T10:26:19.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }