{ "id": "176184", "key": "TIMOB-28442", "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": "21050", "name": "Release 10.0.0", "archived": false, "released": true, "releaseDate": "2021-05-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-05-10T15:52:26.000+0000", "created": "2021-05-07T18:08:18.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "date", "picker", "regression" ], "versions": [ { "id": "21050", "name": "Release 10.0.0", "archived": false, "released": true, "releaseDate": "2021-05-17" } ], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-05-10T15:52:26.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": "h5. Steps to reproduce:\r\n1. Use the below code in the app.js:\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar pickerDate = Ti.UI.createPicker({\r\n type: Ti.UI.PICKER_TYPE_DATE\r\n});\r\n\r\nvar pickDateBtn = Ti.UI.createButton({\r\n title: 'Click!',\r\n height: 200,\r\n width: 250,\r\n top: 50,\r\n left: 50\r\n});\r\n\r\npickDateBtn.addEventListener('click', function() {\r\n pickerDate.showDatePickerDialog({\r\n minDate: new Date(2009, 0, 1),\r\n maxDate: new Date(2015, 11, 31),\r\n value: new Date(2018, 0, 1), //check to see if the value can be set higher than maxDate, should not actually see this value in the app\r\n callback: function(e) {\r\n if (e.cancel) {\r\n Ti.API.info('User canceled dialog');\r\n } else {\r\n Ti.API.info('User selected date: ' + e.value);\r\n }\r\n }\r\n });\r\n});\r\n\r\nwin.add(pickDateBtn);\r\nwin.open();\r\n{code}\r\n2. Build for Android device/emulator.\r\n3. After the app is launched tap on click to bring up the calender.\r\n4. Check the date showing in the calendar.\r\n\r\nh5Actual result:\r\n1. The date is the date set for the {{value}} property of the picker.\r\n\r\nh5. Expected result:\r\n1. The date showing on the calendar should be the {{maxDate}}.\r\n", "attachment": [], "flagged": false, "summary": "Android: maxDate is not respected when value of picker is set higher than maxDate", "creator": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Studio Ver: 6.0.0.202005141803\r\nSDK Ver: 10.0.0.v20210503094445\r\nOS Ver: 10.15.5\r\nXcode Ver: Xcode 12.4\r\nAppc NPM: 6.0.0-1\r\nAppc CLI: 9.0.0-10\r\nDaemon Ver: 4.0.4\r\nTi CLI Ver: 5.3.1\r\nAlloy Ver: 1.16.0\r\nNode Ver: 14.16.1\r\nNPM Ver: 6.14.12\r\nJava Ver: 11.0.6\r\nAndroid Devices: ⇨ google Pixel (Android 10)\r\n", "comment": { "comments": [ { "id": "458662", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/12787", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-05-07T21:46:23.000+0000", "updated": "2021-05-07T21:46:23.000+0000" }, { "id": "458666", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master, backport PR for 10_0_X merged for 10.0.0 GA target", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2021-05-10T14:53:34.000+0000", "updated": "2021-05-10T15:52:24.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }