{ "id": "99713", "key": "TIMOB-10587", "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": "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2012-11-06T23:51:58.000+0000", "created": "2012-08-24T04:37:59.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "qe-ios082012" ], "versions": [ { "id": "14096", "description": "Release 2.1.2", "name": "Release 2.1.2", "archived": true, "released": true, "releaseDate": "2012-08-31" } ], "issuelinks": [], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-17T18:49:23.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": "The getvalue() method for date picker returns incorrect date.\r\n\r\nThis is not a regression.It occurs as far as 2.0.1.\r\n\r\nSteps to Reproduce:\r\n\r\n1. install and launch the app.\r\n2. set the date in the picker.\r\n3. Click on Get value button.\r\n\r\nExpected Result:\r\nSelected value(date) should be displayed on console.\r\n\r\nActual Result:\r\nValue (date) that is being returned to the console is one date previous to the selected one.\r\n\r\napp.js\r\n{code}\r\n var _window = Ti.UI.createWindow({\r\n \t\r\n\t\tbackgroundColor : '#000',\r\n\t   layout :'vertical',\r\n\t   navBarHidden : true\r\n\t\t  \r\n\t\t});\r\n\t\tvar datePicker = Ti.UI.createPicker({\r\n\t\t    type: Ti.UI.PICKER_TYPE_DATE,\r\n\t\t    useSpinner: false\r\n\t\t});\r\n\t\t  \r\n\t\tdatePicker.addEventListener('change', function(e) {\r\n\t\t  Ti.API.info('change event: value = ' + e.value);\r\n\t\t});\r\n\t\t  \r\n\t\tvar button = Ti.UI.createButton({\r\n\t\t    title: 'Get value'\r\n\t\t});\r\n\t\t  \r\n\t\tbutton.addEventListener('click', function(){\r\n\t\t    Ti.API.info(datePicker.value);\r\n\t\t    Ti.API.info(datePicker.getValue());\r\n\t\t});\r\n\t\t   \r\n\t\t_window.add(datePicker);\r\n\t\t_window.add(button);\r\n\t_window.open();\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "iOS: Picker - The getvalue() method for date picker returns incorrect date", "creator": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Titanium Studio: 2.1.2.201208201549\r\nTitanium SDK: 2.1.2.v20120821160113\r\niOS Device: iPad 2 (5.1)\r\nOS: Mac OSX 10.8", "comment": { "comments": [ { "id": "226414", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Cannot reproduce on master \nTested on \nTiSDK master (3.1.0 build 4066332)\nOn iPhone 4S running 5.1\non Xcode 4.5.2 in OSX 10.8\n", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-06T23:51:37.000+0000", "updated": "2012-11-06T23:51:37.000+0000" }, { "id": "413606", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-17T18:49:23.000+0000", "updated": "2017-03-17T18:49:23.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }