{ "id": "104085", "key": "TIMOB-14363", "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": "2012-10-30T09:31:17.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "core", "defect" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:46.000+0000", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Hallo I'm trying to integrate the Android Calendar on ICS using SDK 2.X (I'm using the latest 2.1.3GA) with the example (Copied from the doc) code below:\r\n\r\n{code:javascript}\r\nvar CALENDAR_TO_USE = 3;\r\nvar calendar = Ti.Android.Calendar.getCalendarById(CALENDAR_TO_USE);\r\n \r\n// Create the event\r\nvar eventBegins = new Date(2010, 11, 26, 12, 0, 0);\r\nvar eventEnds = new Date(2010, 11, 26, 14, 0, 0);\r\nvar details = {\r\n title: 'Do some stuff',\r\n description: \"I'm going to do some stuff at this time.\",\r\n begin: eventBegins,\r\n end: eventEnds\r\n};\r\n \r\nvar event = calendar.createEvent(details);\r\n \r\n// Now add a reminder via e-mail for 10 minutes before the event.\r\nvar reminderDetails = {\r\n minutes: 10,\r\n method: Ti.Android.Calendar.METHOD_EMAIL\r\n};\r\nevent.createReminder(reminderDetails);\r\n{code}\r\n\r\nAn error is found \"Event values must include an eventTimezone\".\r\n", "attachment": [], "flagged": false, "summary": "Android: Calendar NOT WORKING on post-ICS included", "creator": { "name": "gabriele.ravanelli", "key": "gabriele.ravanelli", "displayName": "gabriele", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "gabriele.ravanelli", "key": "gabriele.ravanelli", "displayName": "gabriele", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Ti Mobile SDK 2.1.3GA, Titanium Studio, build: 2.1.2.201208301612, deploy target Galaxy Nexus i9250 Android 4.1.2", "comment": { "comments": [ { "id": "225501", "author": { "name": "gabriele.ravanelli", "key": "gabriele.ravanelli", "displayName": "gabriele", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I've also post 6 months ago on a Q&A this post, but no answer were found.\n\nlink: http://developer.appcelerator.com/question/137424/calendar-on-ics-error-event-values-must-include-an-eventtimezone\n", "updateAuthor": { "name": "gabriele.ravanelli", "key": "gabriele.ravanelli", "displayName": "gabriele", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-30T09:35:44.000+0000", "updated": "2012-10-30T09:35:44.000+0000" }, { "id": "246099", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hi,\r\n\r\nSorry for the delay on this one. Have you gotten it to work since? If not, please provide some code that can be copied and pasted into app.js and run. No missing variables, etc.. thanks.", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-04-05T23:15:48.000+0000", "updated": "2013-04-05T23:15:48.000+0000" }, { "id": "247258", "author": { "name": "gabriele.ravanelli", "key": "gabriele.ravanelli", "displayName": "gabriele", "active": true, "timeZone": "America/Los_Angeles" }, "body": "What kind of info do you need?\n\nI'm trying to add an event to an Android Calendar using your provided doc. In Titanium Modible SDK 1.X and device Android 2.X all works right but since Ti Mobile SDK 2.x and Android 3.X or 4.X no event is listed in Calendar.", "updateAuthor": { "name": "gabriele.ravanelli", "key": "gabriele.ravanelli", "displayName": "gabriele", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-12T09:28:44.000+0000", "updated": "2013-04-12T09:28:44.000+0000" }, { "id": "247296", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We need \"some code that can be copied and pasted into an app.js and run\".", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-12T16:56:41.000+0000", "updated": "2013-04-12T16:56:41.000+0000" }, { "id": "248124", "author": { "name": "gabriele.ravanelli", "key": "gabriele.ravanelli", "displayName": "gabriele", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I've copied and pasted the same snip used by Titanium Mobile Doc. Using this code you should run an app and verify the problem. ", "updateAuthor": { "name": "gabriele.ravanelli", "key": "gabriele.ravanelli", "displayName": "gabriele", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-18T09:30:17.000+0000", "updated": "2013-04-18T09:30:17.000+0000" }, { "id": "259338", "author": { "name": "gabriele.ravanelli", "key": "gabriele.ravanelli", "displayName": "gabriele", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I've spend 2 hours to make a WA for this BUG because was blocking for my App.\r\n\r\nI've insert into EventProxy.java under the method createEvent this simple 3 lines after all eventValues' properties assignment:\r\n\r\n{code:title=EventProxy.java|borderStyle=solid}\r\npublic static EventProxy createEvent(CalendarProxy calendar, KrollDict data) {\r\n ContentResolver contentResolver = TiApplication.getInstance().getContentResolver();\r\n \r\n ...\r\n\r\n // Post ICS fix by Gabriele Ravanelli (gabriele.ravanelli@gmail.com)\r\n if (Build.VERSION.SDK_INT >= 11){\r\n // Specify your personal time zone\r\n eventValues.put(\"eventTimezone\", \"Europe/Rome\");\r\n }\r\n\r\n Uri eventUri = contentResolver.insert(Uri.parse(CalendarProxy.getBaseCalendarUri()+\"/events\"), eventValues);\r\n\r\n ...\r\n\r\n return event;\r\n}\r\n{code} \r\n", "updateAuthor": { "name": "gabriele.ravanelli", "key": "gabriele.ravanelli", "displayName": "gabriele", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-25T08:38:17.000+0000", "updated": "2013-06-25T08:38:36.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }