{ "id": "154786", "key": "TIMOB-20360", "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": "2016-02-06T21:35:04.000+0000", "priority": null, "labels": [], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T19:55:28.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": [], "description": "My code looks like in the attachment below and the console.log is printing out the correct date also in the 2nd attachment however when displaying the date on the backend it changes the 2016 to 2006. Please fix quickly as App is soon going live!\r\n", "attachment": [ { "id": "58159", "filename": "Screen Shot 2016-02-06 at 09.31.56.png", "author": { "name": "Mr Shakes", "key": "mr shakes", "displayName": "Olabosipo Shoroye", "active": true, "timeZone": "Europe/London" }, "created": "2016-02-06T21:34:19.000+0000", "size": 19402, "mimeType": "image/png" }, { "id": "58158", "filename": "Screen Shot 2016-02-06 at 09.32.29.png", "author": { "name": "Mr Shakes", "key": "mr shakes", "displayName": "Olabosipo Shoroye", "active": true, "timeZone": "Europe/London" }, "created": "2016-02-06T21:34:19.000+0000", "size": 24378, "mimeType": "image/png" } ], "flagged": false, "summary": "ArrowDB Event changing date of event", "creator": { "name": "Mr Shakes", "key": "mr shakes", "displayName": "Olabosipo Shoroye", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "Mr Shakes", "key": "mr shakes", "displayName": "Olabosipo Shoroye", "active": true, "timeZone": "Europe/London" }, "environment": null, "comment": { "comments": [ { "id": "376199", "author": { "name": "jnaher", "key": "jnaher", "displayName": "Jebun Naher", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\n\r\nWe tested this issue and event date is showing as expected. Can you add more information on how you are displaying the date on the backend?\r\n\r\n*Test Code:*\r\n{code}\r\nACS.Events.query({\r\n\t where : {\r\n\t \"name\" : {\r\n\t // \"$in\" :['movie','netflix']\r\n\t\t \"$in\" :['movie','netflix','']\r\n\t }\r\n\t }\t\t\t\t\r\n\t\t//tags : {'$in': ['movie','netflix']}\r\n\t }, function(e) {\r\n\t if (e.success) {\r\n\t \t Ti.API.info(\"Total event is \"+e.events.length);\r\n\t Ti.API.info( \"Total event is\"+JSON.stringify(e.events) );\t \r\n\t } else {\r\n\t alert('Some error occurred');\r\n\t }\r\n\t });\r\n\t}\r\n{code}\r\n\r\n*Output:*\r\n{code}\r\n[INFO] : Total event is 2\r\n[INFO] : Total event is[{\"id\":\"56b704e73477c0090b57a620\",\"name\":\"netflix\",\"start_time\":\"2016-02-07T08:47:00+0000\",\"duration\":7200,\"created_at\":\"2016-02-07T08:48:39+0000\",\"updated_at\":\"2016-02-07T08:48:39+0000\",\"ical\":\"DTSTART:20160207T084700Z\\nDURATION:PT2H\",\"recurring_until\":\"2016-02-07T08:47:00+0000\",\"num_occurrences\":1,\"details\":\"fun\",\"user_id\":\"5669545c4a522f0907d824c2\"},{\"id\":\"56b704b2bb2d99bd563456d9\",\"name\":\"movie\",\"start_time\":\"2016-02-07T08:46:00+0000\",\"duration\":3600,\"created_at\":\"2016-02-07T08:47:46+0000\",\"updated_at\":\"2016-02-07T08:47:46+0000\",\"ical\":\"DTSTART:20160207T084600Z\\nDURATION:PT1H\",\"recurring_until\":\"2016-02-07T08:46:00+0000\",\"num_occurrences\":1,\"details\":\"enjoyment\",\"user_id\":\"5669545c4a522f0907d824c2\"}]\r\n{code}\r\nThanks.", "updateAuthor": { "name": "jnaher", "key": "jnaher", "displayName": "Jebun Naher", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-02-07T11:05:39.000+0000", "updated": "2016-02-10T10:10:08.000+0000" }, { "id": "376661", "author": { "name": "Mr Shakes", "key": "mr shakes", "displayName": "Olabosipo Shoroye", "active": true, "timeZone": "Europe/London" }, "body": "Your test code is for a different issue I created, please double check", "updateAuthor": { "name": "Mr Shakes", "key": "mr shakes", "displayName": "Olabosipo Shoroye", "active": true, "timeZone": "Europe/London" }, "created": "2016-02-11T20:06:06.000+0000", "updated": "2016-02-11T20:06:06.000+0000" }, { "id": "376662", "author": { "name": "Mr Shakes", "key": "mr shakes", "displayName": "Olabosipo Shoroye", "active": true, "timeZone": "Europe/London" }, "body": "For the date problem all I did was get values from a textfield(dayinput.getValue()) and timepicker as shown in the attached image. The console.log gives me the value shown in the other image attached and I just realised the two values given in the console.log are different, one is 2016-2-9 and the other is Feb 06 2016 (different dates) so somewhere on the backend things are getting messed up. I am using your pre-defined events backend with no modification.", "updateAuthor": { "name": "Mr Shakes", "key": "mr shakes", "displayName": "Olabosipo Shoroye", "active": true, "timeZone": "Europe/London" }, "created": "2016-02-11T20:13:16.000+0000", "updated": "2016-02-11T20:13:16.000+0000" }, { "id": "376663", "author": { "name": "Mr Shakes", "key": "mr shakes", "displayName": "Olabosipo Shoroye", "active": true, "timeZone": "Europe/London" }, "body": "My system is a mac, using your studio.", "updateAuthor": { "name": "Mr Shakes", "key": "mr shakes", "displayName": "Olabosipo Shoroye", "active": true, "timeZone": "Europe/London" }, "created": "2016-02-11T20:14:21.000+0000", "updated": "2016-02-11T20:14:21.000+0000" }, { "id": "376664", "author": { "name": "Mr Shakes", "key": "mr shakes", "displayName": "Olabosipo Shoroye", "active": true, "timeZone": "Europe/London" }, "body": "I will test the events query for $in tomorrow and report back", "updateAuthor": { "name": "Mr Shakes", "key": "mr shakes", "displayName": "Olabosipo Shoroye", "active": true, "timeZone": "Europe/London" }, "created": "2016-02-11T20:15:56.000+0000", "updated": "2016-02-11T20:15:56.000+0000" }, { "id": "377065", "author": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "body": "[~Mr Shakes]\r\n\r\nI tried to reproduce this issue by selecting a date from picker and creating an event from the selected date as {{start_time}}. It works as expected. \r\n\r\n{code}\r\n{\"id\":\"56c3fbdf995248ea6af4f1f4\",\"name\":\"Celebration\",\"start_time\":\"2016-02-14T04:49:18+0000\",\"duration\":3600,\"created_at\":\"2016-02-17T04:49:35+0000\",\"updated_at\":\"2016-02-17T04:49:35+0000\",\"ical\":\"DTSTART:20160214T044918Z\\nDURATION:PT1H\\nRRULE:FREQ=MONTHLY;COUNT=5\",\"recurring\":\"monthly\",\"recurring_count\":5,\"num_occurrences\":5,\"user_id\":\"56c3f11751f034ed6cebfb97\"}\r\n{code}\r\n\r\nI see that you are providing a formatted string as an input to {{start_time}}. Before that can you create {{Date}} with the formatted string and print it to see if the formatted string is correct. \r\nYour date string should confirm to RFC 2822. See [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse]\r\n\r\nTry providing your code. \r\n", "updateAuthor": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-02-17T05:06:38.000+0000", "updated": "2016-02-17T05:08:55.000+0000" }, { "id": "377085", "author": { "name": "Mr Shakes", "key": "mr shakes", "displayName": "Olabosipo Shoroye", "active": true, "timeZone": "Europe/London" }, "body": "I tried using Date picker initially and it worked for Android but it kept setting the date to 1970 for IOS and thats why I switched to the input style method above. I will try the other suggestion and report back soon.", "updateAuthor": { "name": "Mr Shakes", "key": "mr shakes", "displayName": "Olabosipo Shoroye", "active": true, "timeZone": "Europe/London" }, "created": "2016-02-17T08:33:18.000+0000", "updated": "2016-02-17T08:33:18.000+0000" }, { "id": "377100", "author": { "name": "Mr Shakes", "key": "mr shakes", "displayName": "Olabosipo Shoroye", "active": true, "timeZone": "Europe/London" }, "body": "The $in is working for 'name' of event but not for tags, please test for tags.", "updateAuthor": { "name": "Mr Shakes", "key": "mr shakes", "displayName": "Olabosipo Shoroye", "active": true, "timeZone": "Europe/London" }, "created": "2016-02-17T13:00:21.000+0000", "updated": "2016-02-17T13:00:21.000+0000" }, { "id": "377104", "author": { "name": "Mr Shakes", "key": "mr shakes", "displayName": "Olabosipo Shoroye", "active": true, "timeZone": "Europe/London" }, "body": "I used the new Date for the date and it worked thanks, still having problems with the tags for $in", "updateAuthor": { "name": "Mr Shakes", "key": "mr shakes", "displayName": "Olabosipo Shoroye", "active": true, "timeZone": "Europe/London" }, "created": "2016-02-17T13:18:13.000+0000", "updated": "2016-02-17T13:18:13.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }