{ "id": "131117", "key": "TIMOB-17054", "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": { "id": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2016-06-02T03:08:28.000+0000", "created": "2014-06-01T04:53:34.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "SupportTeam" ], "versions": [ { "id": "15857", "description": "Release 3.2.2", "name": "Release 3.2.2", "archived": false, "released": true, "releaseDate": "2014-03-09" }, { "id": "15971", "description": "Release 3.2.3", "name": "Release 3.2.3", "archived": false, "released": true, "releaseDate": "2014-04-30" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T20:51:56.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. Problem description\r\n\r\nWhen I display the date/time localized for my timezone it does not update if I change the timezone on the device while the app is running. It maintains the old timezone. This causes the time portion (and possibly the day) to not change as expected.\r\n\r\nh5. Test Code\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : 'red'\r\n});\r\n\r\nvar btn = Ti.UI.createButton({\r\n\ttitle : 'Now',\r\n\ttop : 10,\r\n\tleft : 10,\r\n\twidth : 200,\r\n\theight : 50\r\n});\r\nwin.add(btn);\r\nbtn.addEventListener('click', function(evt) {\r\n\tvar d = new Date();\r\n\tlocal.text = d.toLocaleString();\r\n\tutc.text = d.toUTCString();\r\n});\r\n\r\nvar local = Ti.UI.createLabel({\r\n\ttext : '?',\r\n\ttop : 100,\r\n\tleft : 10,\r\n\tright : 10,\r\n\theight : 50\r\n});\r\nwin.add(local);\r\n\r\nvar utc = Ti.UI.createLabel({\r\n\ttext : '?',\r\n\ttop : 200,\r\n\tleft : 10,\r\n\tright : 10,\r\n\theight : 50\r\n});\r\nwin.add(utc);\r\n\r\nwin.open();\r\n\r\n{code} \r\n\r\nh5. Step to reproduces:\r\n\r\n1) Set timezone of device to Pacific\r\n2) Run the app\r\n3) Tap \"Now\" button\r\n4) Note that the top date string is localized to Pacific timezone\r\n5) Do not kill the app\r\n6) Open device settings\r\n7) Change timezone to Eastern\r\n8) Go back to app\r\n9) Tap \"Now\" button\r\n10) Force close the app and relaunch\r\n11) Tap \"Now\"\r\n\r\nh5. Expected Result \r\nThe top localized date string displays in Easter time (3 hours ahead)\r\n\r\nh5. Result: \r\nThe date time still reflect a Pacific timezone *HOWEVER* the displayed timezone is Eastern. The displayed timezone code is just information. It had no bearing on the date time localization.\r\n", "attachment": [], "flagged": false, "summary": "Android: Changing device timezone realtime does not alter time", "creator": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "subtasks": [], "reporter": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "environment": "Android 4.x,\r\nTi SDK 3.2.2.GA, 3.2.3.GA", "comment": { "comments": [ { "id": "307168", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Is this a regression from a previous version?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-02T16:02:32.000+0000", "updated": "2014-06-02T16:02:32.000+0000" }, { "id": "318734", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "3.4.0 is moved forward, and 3.5.0 is taking its place in the calendar.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-14T21:31:53.000+0000", "updated": "2014-08-14T21:31:53.000+0000" }, { "id": "387373", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": " Date.toLocaleString() is a native Javascript method, not a Titanium API. ", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-06-02T03:08:00.000+0000", "updated": "2016-06-02T03:08:00.000+0000" }, { "id": "414396", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing this ticket as the issue is not our bug.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T20:51:56.000+0000", "updated": "2017-03-21T20:51:56.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }