{ "id": "117132", "key": "TIMOB-14616", "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": "2013-07-12T11:30:21.000+0000", "priority": null, "labels": [ "parity" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:43.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": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h6.Issue\r\nTi.Calendar.getEventsInMonth (and presumably its other variants) expect a 1-based month number instead of 0-based on iOS (Android version uses 0-based).\r\n\r\nh6.Sample \r\nSee a CalendarTestcase.zip attached.\r\n\r\nThis is the date I use to create the event:\r\n{code}\r\nvar date = new Date(2013, 7, 15);\r\nI.e. should be 0-based month 7, i.e. August.\r\n{code}\r\n\r\nAnd this is what it finds:\r\n{code}\r\n[INFO] : Search date: Sun Sep 15 2013 00:00:00 GMT+0200 (CEST)\r\n[INFO] : 52843A09-9283-4382-B33B-08F760BC4171:0D931267-2858-49C5-B657-00A74566354C at 2013-08-14T22:00:00.000+0000: Titanium iOS Calendar Testcase\r\n{code}\r\n\r\nI.e. it finds the newly-created event looking for month 8. It should be the problem in one of the two functions. Best would be if the behaviour were the same across platforms, of course.\r\n\r\nh6.Additional details\r\nMoreover, the docs don't mention one should call event.save() after calendar.createEvent() in order to have the event be actually saved on iOS (Android doesn't need this).", "attachment": [ { "id": "40707", "filename": "CalendarTestcase.zip", "author": { "name": "a.chirikba", "key": "a.chirikba", "displayName": "Andrey Chirikba", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-07-12T11:30:21.000+0000", "size": 125146, "mimeType": "application/zip" } ], "flagged": false, "summary": "iOS: Ti.Calendar.getEventsInMonth uses 1-based months instead of 0-based", "creator": { "name": "a.chirikba", "key": "a.chirikba", "displayName": "Andrey Chirikba", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "a.chirikba", "key": "a.chirikba", "displayName": "Andrey Chirikba", "active": true, "timeZone": "Europe/Berlin" }, "environment": "iOS", "comment": { "comments": [ { "id": "262140", "author": { "name": "a.chirikba", "key": "a.chirikba", "displayName": "Andrey Chirikba", "active": true, "timeZone": "Europe/Berlin" }, "body": "[Moved to description]", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-07-17T08:22:04.000+0000", "updated": "2013-07-22T16:32:33.000+0000" }, { "id": "316739", "author": { "name": "bgrantges@appcelerator.com", "key": "bgrantges", "displayName": "Bert Grantges", "active": false, "timeZone": "America/Chicago" }, "body": "Confirming that this is still open - can we get this fixed please :)", "updateAuthor": { "name": "bgrantges@appcelerator.com", "key": "bgrantges", "displayName": "Bert Grantges", "active": false, "timeZone": "America/Chicago" }, "created": "2014-08-02T15:49:03.000+0000", "updated": "2014-08-02T15:49:03.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }