{ "id": "63961", "key": "TIMOB-3329", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" }, { "id": "11249", "name": "Sprint 2011-14", "archived": true, "released": true, "releaseDate": "2011-04-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-05-03T12:23:56.000+0000", "created": "2011-04-15T03:42:15.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "feature", "format", "klist", "picker", "release-1.7.0", "rplist" ], "versions": [], "issuelinks": [ { "id": "10267", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "64787", "key": "TIMOB-3716", "fields": { "summary": "Confirm TIMOB-3329", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true } } } } ], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2011-05-03T12:23:56.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}
Problem
\nformat24:false still returns 24 hour time in the picker
\nTest Code Tested on 1.6 and 1.7\n(03/10/11) APIs 2.1 & 2.2
\n\nvar win = Titanium.UI.createWindow({ \n title:'Tab 1',\n backgroundColor:'#fff'\n});\nvar picker = Ti.UI.createPicker({\n top: 20,\n type: Ti.UI.PICKER_TYPE_TIME,\n minuteInterval: 30,\n useSpinner: true\n });\nwin.add(picker);\nwin.open();
\n
\nTicket Reference
\nI have some code that may be relevant to this, planning to\nsubmit a pull request later this week.
This is not a defect, so I removed the \"defect\" tag and put in\n\"feature\". This was an undocumented flag, precisely because it was\nan unimplemented feature. :)
\nNice test app.js for QE:
\n\n/*global Ti, Titanium, alert, JSON, require, setTimeout, setInterval */\nTitanium.UI.setBackgroundColor('#000');\nvar win = Titanium.UI.createWindow({ \n title:'Test',\n backgroundColor:'#000',\n exitOnClose: true\n});\n\nvar lbl = Ti.UI.createLabel({\n bottom: \"10dp\", height: \"40dp\", left: 5, right: 5,\n backgroundColor: 'blue', color: 'yellow'\n});\nwin.add(lbl);\n\nvar p = Ti.UI.createPicker({\n type: Ti.UI.PICKER_TYPE_TIME, useSpinner:true, format24:false,\n top: 10, height: 'auto', width: 'auto'\n});\np.addEventListener('change', function(e){\n lbl.text = e.value;\n});\nwin.add(p);\n\nvar btn = Ti.UI.createButton({\n bottom: \"60dp\", height: \"40dp\", left: 5, right: 5,\n title: 'Set to now'\n});\nwin.add(btn);\nbtn.addEventListener('click', function(){\n p.value = new Date();\n});\n\nvar btn2 = Ti.UI.createButton({\n bottom: \"105dp\", height: \"40dp\", left: 5, right: 5,\n title: 'toggle am/pm'\n});\nwin.add(btn2);\nbtn2.addEventListener('click', function(){\n var format24 = p.format24;\n if (format24) {\n format24 = false;\n } else {\n format24 = true;\n }\n p.format24 = format24;\n});\n\nvar btn3 = Ti.UI.createButton({\n bottom: \"150dp\", height: \"40dp\", left: 5, right: 5,\n title: 'check time'\n});\nwin.add(btn3);\nbtn3.addEventListener('click', function(){\n lbl.text = p.value;\n});\nwin.open();
\n