{ "id": "146086", "key": "TIMOB-18728", "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": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-03-31T20:40:20.000+0000", "created": "2015-03-23T01:14:07.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "android", "buddhist", "datepicker" ], "versions": [ { "id": "16711", "description": "Release 3.5.1", "name": "Release 3.5.1", "archived": false, "released": true, "releaseDate": "2015-03-06" } ], "issuelinks": [], "assignee": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2015-06-05T19:00:08.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": "10224", "name": "TiAPI", "description": "This component is used for cross-platform API work. Specifications are most likely to use this component." } ], "description": "Android: Date picker Can't Select Date after year 2100AD\r\n\r\nh5.Steps to reproduce:\r\n1.Run the following code in classic mobile project.\r\n{code:title=app.js}\r\nTi.UI.backgroundColor = 'white';\r\nvar win = Ti.UI.createWindow({\r\n exitOnClose: true,\r\n layout: 'vertical'\r\n});\r\n\r\nvar picker = Ti.UI.createPicker({\r\n type:Ti.UI.PICKER_TYPE_DATE,\r\n minDate:new Date(2009,0,1),\r\n maxDate:new Date(2200,4,1),\r\n value:new Date(2015,2,23),\r\n top:50,\r\n accessablityLabel: \"data picker\"\r\n});\r\n\r\nwin.add(picker);\r\nwin.open();\r\n\r\npicker.addEventListener('change',function(e){\r\n Ti.API.info(\"User selected date: \" + e.value.toLocaleString());\r\n});\r\n{code}\r\n\r\nh5.Expect Result:\r\nDate should be available to select until the max value \r\n\r\nh5.Actual Result:\r\nDate only available to 2100AD, no matter what max value set.\r\n\r\nh5.Use case:\r\nFor Thailand Buddhist, the year is 543 behind Gregorian year. That is why we need select date after 2100AD.\r\n\r\nh5.N.B\r\nOnly happened in android device, iOS works well. ", "attachment": [], "flagged": false, "summary": "Android: Date picker Can't Select Date after year 2100AD", "creator": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "subtasks": [], "reporter": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "environment": "Ti SDK 3.5.*\r\nAndroid 4.2.2", "closedSprints": [ { "id": 370, "state": "closed", "name": "2015 Sprint 07 SDK", "startDate": "2015-03-28T00:00:13.362Z", "endDate": "2015-04-11T00:00:00.000Z", "completeDate": "2015-04-13T16:25:29.003Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "347663", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/6753\r\n\r\nTest steps.\r\n\r\n{code}\r\nTi.UI.backgroundColor = 'white';\r\nvar win = Ti.UI.createWindow({\r\n exitOnClose: true,\r\n layout: 'vertical'\r\n});\r\n\r\nvar picker = Ti.UI.createPicker({\r\n type:Ti.UI.PICKER_TYPE_DATE,\r\n minDate:new Date(2009,0,1),\r\n maxDate:new Date(2200,4,1),\r\n value:new Date(2015,2,23),\r\n top:50,\r\n accessablityLabel: \"data picker\"\r\n});\r\n\r\nwin.add(picker);\r\nwin.open();\r\n\r\npicker.addEventListener('change',function(e){\r\n Ti.API.info(\"User selected date: \" + e.value.toLocaleString());\r\n});\r\n{code}", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-03-30T04:09:23.000+0000", "updated": "2015-03-30T04:09:23.000+0000" }, { "id": "354459", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix. We can now select date after 2100AD.\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 4.0.1.201506021908\r\nTi SDK : 4.1.0.v20150604094312\r\nCLI : 4.0.2-rc2\r\nAlloy : 1.6.0\r\nMAC Yosemite : 10.10.3\r\nAppc npm : 4.0.0\r\nAppc CLI : 4.0.1\r\nNode: v0.10.37\r\nNexus 5 - Android 5.1.1", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-06-05T19:00:03.000+0000", "updated": "2015-06-05T19:00:03.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }