{ "id": "101509", "key": "TIMOB-10995", "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": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14621", "description": "2012 Sprint 23 API", "name": "2012 Sprint 23 API", "archived": true, "released": true, "releaseDate": "2012-11-19" }, { "id": "14623", "description": "2012 Sprint 23 JS", "name": "2012 Sprint 23", "archived": true, "released": true, "releaseDate": "2012-11-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-11-16T22:11:24.000+0000", "created": "2012-09-19T11:10:13.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "qe-port" ], "versions": [ { "id": "14096", "description": "Release 2.1.2", "name": "Release 2.1.2", "archived": true, "released": true, "releaseDate": "2012-08-31" }, { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:42:35.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": "If you create a time picker and set the minuteInterval property equal to '20' then try to set the value to 9:20, it sets the value to 9:40. Similarly if you try 9:40 it sets it to 9:20. Seems to be some bug with the setting of the minutes. If I remove the minuteInterval property, then it sets the time correctly. Some example code:\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({ backgroundColor: '#fff' });\r\n\r\nvar origstarthour = 9;\r\nvar origstartminute = 40;\r\nvar today = new Date();\r\n\r\nvar starttimepicker = Ti.UI.createPicker({\r\n type:Ti.UI.PICKER_TYPE_TIME,\r\n minDate:new Date(today.getFullYear(),today.getMonth()+1,today.getDate(),9,0,0),\r\n maxDate:new Date(today.getFullYear(),today.getMonth()+1,today.getDate(),13,40,0),\r\n value:new Date(today.getFullYear(),today.getMonth()+1,today.getDate(),origstarthour,origstartminute,0),\r\n minuteInterval:20,\r\n top:110,\r\n left:0\r\n});\r\n\r\nwin.add(starttimepicker);\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Time Picker minuteInterval does not set value correctly for minutes", "creator": { "name": "robscheibel", "key": "robscheibel", "displayName": "Rob Scheibel", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "robscheibel", "key": "robscheibel", "displayName": "Rob Scheibel", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS v5.1 and TiSDK v2.1.2", "comment": { "comments": [ { "id": "219823", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and confirmed on iOS Simulator 5.1, TiSDK 2.1.2, 2.1.3 and 3.0.0.\r\n\r\nWhen minuteInterval has the values 20, 5 or 2 and 'origstartminute' is set to 40, it sets the initial minutes in the picker to 20; and when it's set to 20, it sets the initial minutes in the picker to 40.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-19T14:31:15.000+0000", "updated": "2012-09-19T14:58:18.000+0000" }, { "id": "226380", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull ending https://github.com/appcelerator/titanium_mobile/pull/3384", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-11-06T22:10:48.000+0000", "updated": "2012-11-06T22:10:48.000+0000" }, { "id": "235113", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It is setting values for minutes correctly.\r\nEnvironment used for verification -\r\nTitanium SDK: 3.1.0.v20130114171802\r\nTitanium  Studio: 3.0.1.201212181159\r\nDevice : Simulator iOS 6.0, iPHONE 3G S\tiOS 5.0.1", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-21T12:25:11.000+0000", "updated": "2013-01-21T12:25:11.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }