{ "id": "161595", "key": "AC-4011", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2016-07-20T19:44:17.000+0000", "created": "2016-07-07T10:06:14.000+0000", "labels": [ "DateTime", "SDK3.5.0", "Ti.App.fireEvent" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-07-21T07:20:29.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "SDK used : 3.5.2.v20160311103211\r\n\r\nI create a datetime in object and I fired this object with Ti.App.fireEvent() and in the result, my datetime value was modified.\r\n\r\nExemple : \r\n//index.xml\r\n\r\n\t\r\n\t\t\r\n\t\r\n\r\n\r\n//index.js\r\nfunction doClick(e) {\r\n\tvar result = new Date(\"2016-07-07T00:00:00+02:00\");\r\n var evtData = {result: result};\r\n Ti.App.fireEvent('test',evtData);\r\n}\r\n\r\nTi.App.addEventListener('test', function(e){\r\n\tTi.API.error(\"Original date = 2016-07-07T00:00:00+02:00\" + \" - date received = \" + JSON.stringify(e));\r\n});\r\n\r\n$.index.open();\r\n\r\n\r\nCURRENT RESULT = 2016-07-06T22:00:28.928Z\r\nWAITING RESULT = 2016-07-06T22:00:00.000Z", "attachment": [], "flagged": false, "summary": "fireEvent with datetime object modify the datetime content", "creator": { "name": "jmarty", "key": "jmarty", "displayName": "jmarty", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jmarty", "key": "jmarty", "displayName": "jmarty", "active": true, "timeZone": "America/Los_Angeles" }, "comment": { "comments": [ { "id": "390839", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "I see you are using an old SDK. Can you try with the latest SDK 5.3.1.GA. For me the above code shows with SDK 5.3.0.GA\r\n{code}\r\n[ERROR] : Original date = 2016-07-07T00:00:00+02:00 - date received = {\"type\":\"test\",\"source\":{\"deployType\":\"development\",\"id\":\"com.gsl.shajib\",\"name\":\"sha140\",\"version\":\"1.0\",\"__propertiesDefined__\":true,\"Properties\":{\"apiName\":\"Ti.App.Properties\",\"bubbleParent\":true},\"description\":\"undefined\",\"Android\":{\"bubbleParent\":true,\"launchIntent\":{\"action\":null,\"bubbleParent\":true,\"data\":null,\"type\":null,\"apiName\":\"Ti.Android.Intent\",\"flags\":268435456},\"appVersionCode\":1,\"appVersionName\":\"1.0\",\"apiName\":\"Ti.App.Android\",\"R\":{\"bubbleParent\":true,\"apiName\":\"Ti.Android.R\"}},\"_events\":{\"test\":{}},\"bubbleParent\":true,\"guid\":\"0cd6ed1f-8aef-4d5b-9222-c0f3b17db37a\",\"copyright\":\"2016 by gsl001\",\"url\":\"undefined\",\"proximityState\":false,\"proximityDetection\":false,\"publisher\":\"gsl001\",\"accessibilityEnabled\":false,\"apiName\":\"Ti.App\",\"sessionId\":\"2cb3ace1-f143-4641-a52c-46cfc998a490\",\"analytics\":true},\"result\":\"2016-07-06T22:00:00.000Z\",\"bubbles\":false,\"cancelBubble\":false}\r\n{code}\r\nThanks. ", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-07-16T07:00:43.000+0000", "updated": "2016-07-16T07:03:58.000+0000" }, { "id": "391177", "author": { "name": "jmarty", "key": "jmarty", "displayName": "jmarty", "active": true, "timeZone": "America/Los_Angeles" }, "body": "If I use another SDK, all my project changes. To test with the latest SDK, I must update my sdk, my XCode ...etc I broke my project...\r\nI can't test with the latest SDK. But the SDK 3.5 is not updated ?", "updateAuthor": { "name": "jmarty", "key": "jmarty", "displayName": "jmarty", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-07-21T07:20:29.000+0000", "updated": "2016-07-21T07:20:29.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }