{ "id": "172000", "key": "TIMOB-26256", "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": [], "resolution": null, "resolutiondate": null, "created": "2018-08-03T21:22:26.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "engSchedule", "ios", "picker" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2019-04-09T15:42:06.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "*Summary:*\r\nPicker resets its date/time selection back to current time when it's removed and re-added to the window. This happens with {{Ti.UI.PICKER_TYPE_DATE}} and {{Ti.UI.PICKER_TYPE_TIME}}.\r\n\r\nThis is not an issue on Android.\r\n\r\n*Steps to reproduce:*\r\n# Create a project using the attached [^DatePickerAddRemoveTest.js] code.\r\n# Build and run on iOS.\r\n# Select a different date/time in the picker.\r\n# Tap the \"Remove\" button.\r\n# Tap the \"Add\" button.\r\n# Observe the picker's current date/time.\r\n\r\n*Result:*\r\nPicker resets its selection to current time. Previous selection was forgotten.\r\n\r\n*Expected Result:*\r\nLast date/time selection should be retained.", "attachment": [ { "id": "65412", "filename": "DatePickerAddRemoveTest.js", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-03T21:19:40.000+0000", "size": 571, "mimeType": "application/x-javascript" } ], "flagged": false, "summary": "iOS: Removing and re-adding a date/time picker resets selection to current time", "creator": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }