{ "id": "89192", "key": "TIMOB-8430", "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": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-05-19T20:01:33.000+0000", "created": "2012-03-29T16:15:55.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "merge-6.1.0", "qe-and031912" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-05-19T20:57:18.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": "Description:\r\nSwitching between am and pm time does not makes changes in time format on the top of the page. \r\nAlso occurs on Motorola Xoom 4.0.3, and on both devices on 1.8.2\r\n\r\nSteps:\r\n1. Run KitchenSink\r\n2. Go to Controls-Picker-Time picker\r\n3. Choose a time\r\n4. Switch time format\r\n\r\nExpected result:\r\nTime in correct time format should be shown on the top of the page\r\n\r\nActual result:\r\nTime format on the top of the page is incorrect\r\n", "attachment": [ { "id": "26712", "filename": "device-2012-03-29-164900.png", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-29T16:15:55.000+0000", "size": 42329, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: TimePicker - Switching between am and pm time does not makes changes in time format on the top of the page", "creator": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK: 2.0.0.v20120328183230\r\nTitanium Studio, build: 2.0.0.201203291340\r\nDevice: Galaxy Nexus 4.0.2", "closedSprints": [ { "id": 796, "state": "closed", "name": "2017 Sprint 02 SDK", "startDate": "2017-01-15T00:00:41.845Z", "endDate": "2017-01-29T00:00:00.000Z", "completeDate": "2017-01-30T21:10:44.640Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "229292", "author": { "name": "jtoth", "key": "jtoth", "displayName": "Justin Toth", "active": true, "timeZone": "America/New_York" }, "body": "I just ran into this bug too so will provide some additional information. \r\n\r\nIt doesn't happen on the Android emulator at all, it only happens on devices. \r\n\r\nIt works correctly if you change the AM/PM and then change the hours or minutes *after* before pressing OK, the AM/PM change only doesn't save if you change the AM/PM last and then press OK.\r\n\r\nReproduced on:\r\nSamsung Galaxy SIII\r\nSamsung Galaxy Tab", "updateAuthor": { "name": "jtoth", "key": "jtoth", "displayName": "Justin Toth", "active": true, "timeZone": "America/New_York" }, "created": "2012-11-30T14:47:32.000+0000", "updated": "2012-11-30T14:47:32.000+0000" }, { "id": "229296", "author": { "name": "jtoth", "key": "jtoth", "displayName": "Justin Toth", "active": true, "timeZone": "America/New_York" }, "body": "The picker's \"change\" event doesn't fire when the AM/PM is changed on an Android device, even though it fires when you change the hours or minutes. The getValue() doesn't update either when AM/PM is changed, so there is no workaround that I can see for this...", "updateAuthor": { "name": "jtoth", "key": "jtoth", "displayName": "Justin Toth", "active": true, "timeZone": "America/New_York" }, "created": "2012-11-30T15:05:12.000+0000", "updated": "2012-11-30T15:12:07.000+0000" }, { "id": "236533", "author": { "name": "dbankier", "key": "dbankier", "displayName": "David Bankier", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It is an android issue. See the following:\r\nhttp://code.google.com/p/android/issues/detail?id=18982", "updateAuthor": { "name": "dbankier", "key": "dbankier", "displayName": "David Bankier", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-30T00:04:45.000+0000", "updated": "2013-01-30T00:04:45.000+0000" }, { "id": "242399", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The problem reproduces with release 3.0.2 and master release 3.1.0\n\ntested on\n\nTitanium Studio, build: 3.0.2.201302191606\nTitanium SDK version: 3.1.0 \nTitanium SDK version: 3.0.2 \nDevice: Samsung galaxy s duos Android version: 4.0.4\nAndroid Emulator: Android SDK version: 2.2\niOS iPhone Simulator: iOS SDK version: 6.0\n\nIt works fine on IOS iphone simulator", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-15T04:33:20.000+0000", "updated": "2013-03-15T04:33:20.000+0000" }, { "id": "376252", "author": { "name": "cliff_stander", "key": "cliff_stander", "displayName": "Mike Stancliffe", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This still seems to be a problem in 5.1.2, any updates on it?\r\n", "updateAuthor": { "name": "cliff_stander", "key": "cliff_stander", "displayName": "Mike Stancliffe", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-02-08T18:52:40.000+0000", "updated": "2016-02-08T18:52:40.000+0000" }, { "id": "376448", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "[~cliff_stander] Could you give the code that you are using? And also more information on the device and android version you are using that's facing this issue.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-02-10T03:59:38.000+0000", "updated": "2016-02-10T03:59:38.000+0000" }, { "id": "376642", "author": { "name": "kellycorn", "key": "kellycorn", "displayName": "Kelly Corn", "active": true, "timeZone": "America/Denver" }, "body": "Using a Nexus 6, Android 6.0.1. Selecting AM when PM is default (or vice versa) does not trigger change event as it does on iOS. User must change the hour to trigger the change event.\r\n\r\nSample code:\r\n\r\n{code:JavaScript}\r\n var win1 = Titanium.UI.createWindow({\r\n backgroundColor:'#fff',\r\n layout: 'vertical'\r\n});\r\n\r\nvar label1 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'Set the time below',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto',\r\n\ttop: '40'\r\n});\r\n\r\nvar picker1 = Titanium.UI.createPicker({\r\n\ttype: Ti.UI.PICKER_TYPE_TIME,\r\n\ttop: '20'\r\n});\r\n\r\npicker1.addEventListener('change', function(e) {\r\n\tlabel1.text = picker1.value;\r\n\tTi.API.info(picker1.value);\r\n});\r\n\r\nwin1.add(label1);\r\nwin1.add(picker1);\r\n\r\nwin1.open();\r\n{code}\r\n\r\n", "updateAuthor": { "name": "kellycorn", "key": "kellycorn", "displayName": "Kelly Corn", "active": true, "timeZone": "America/Denver" }, "created": "2016-02-11T18:17:47.000+0000", "updated": "2016-02-11T18:23:23.000+0000" }, { "id": "392578", "author": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "body": "What's the status on this? Sounds like the underlying Android issue may need to be worked around...", "updateAuthor": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "created": "2016-08-06T16:56:06.000+0000", "updated": "2016-08-06T16:56:06.000+0000" }, { "id": "399305", "author": { "name": "fmerzadyan-OLD", "key": "fmerzadyan", "displayName": "Farzad Merzadyan", "active": false, "timeZone": "America/Los_Angeles" }, "body": "In the meantime, use either nativeSpinner or useSpinner properties which comes without the AM/PM button.\r\n\r\n{code:JavaScript}\r\n//usage example of nativeSpinner and useSpinner. \r\n//only one property must be true otherwise nativeSpinner overpowers useSpinner property\r\nvar timePicker = Titanium.UI.createPicker({\r\n type: Ti.UI.PICKER_TYPE_TIME,\r\n top: '20',\r\n nativeSpinner: true,\r\n useSpinner: false\r\n});\r\n{code}\r\n", "updateAuthor": { "name": "fmerzadyan-OLD", "key": "fmerzadyan", "displayName": "Farzad Merzadyan", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-10-18T21:37:36.000+0000", "updated": "2016-10-18T21:37:36.000+0000" }, { "id": "405535", "author": { "name": "fmerzadyan", "key": "fmerzadyan2", "displayName": "Frankie Merzadyan", "active": false, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/8799\r\n6_1_0: https://github.com/appcelerator/titanium_mobile/pull/9026", "updateAuthor": { "name": "fmerzadyan", "key": "fmerzadyan2", "displayName": "Frankie Merzadyan", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-01-27T21:11:33.000+0000", "updated": "2017-05-05T22:06:23.000+0000" }, { "id": "419750", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Note to QE:*\r\nI can only reproduce this issue if my \"tiapp.xml\" is set up to run the JavaScript engine on another thread (ie: not the main UI thread).\r\n\r\n{code:xml}\r\n\r\n false\r\n\r\n{code}\r\n", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-15T23:44:14.000+0000", "updated": "2017-05-15T23:44:14.000+0000" }, { "id": "419849", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~jquick], I am running on the Main thread.\r\n\r\n{code}true{code}", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-16T22:55:13.000+0000", "updated": "2017-05-16T22:55:13.000+0000" }, { "id": "419854", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~lchoudhary],\r\n\r\n[~mchen] and [~fmerzadyan] have came up with a simpler solution to this bug (it's a 2 line fix). A new or updated PR will be coming soon.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-16T23:23:21.000+0000", "updated": "2017-05-16T23:23:21.000+0000" }, { "id": "419917", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The \"master\" and \"6.1.0\" PRs have been updated and reviewed.\r\nThey're ready to be tested.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-17T23:34:28.000+0000", "updated": "2017-05-17T23:34:28.000+0000" }, { "id": "419919", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Failed.\r\n\r\nOn Android 5.1.1. & 6.0.1 the change event does not fire when I change From AM to PM & vice versa. But, if you change from e.g AM toPM, I have to tap on the hour or minute for the change event to fire.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-18T00:55:14.000+0000", "updated": "2017-05-18T00:55:24.000+0000" }, { "id": "420062", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Backport PR merged.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-19T20:10:49.000+0000", "updated": "2017-05-19T20:10:49.000+0000" }, { "id": "420067", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix.\r\n\r\nSwitching between am and pm fires the change event successfully every time.\r\nClosing.\r\n\r\nStudio Ver: 4.9.0.201705170123\r\nSDK Ver: 6.1.0.v20170519130656\r\nOS Ver: 10.12.3\r\nXcode Ver: Xcode 8.3.2\r\nAppc NPM: 4.2.9\r\nAppc CLI: 6.2.1\r\nTi CLI Ver: 5.0.13\r\nAlloy Ver: 1.9.11\r\nNode Ver: 6.10.1\r\nJava Ver: 1.8.0_101\r\nDevices: ⇨ google Nexus 6 --- Android 6.0.1\r\n ⇨ google Pixel XL --- Android 7.1.1\r\n\r\n\r\n", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-19T20:56:58.000+0000", "updated": "2017-05-19T20:56:58.000+0000" } ], "maxResults": 19, "total": 19, "startAt": 0 } } }