{ "id": "124650", "key": "TIMOB-16170", "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": "2014-01-10T17:42:34.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:35.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": "The setter method for the relativeOffset property in Ti.Calendar.Alert is misspelled:\r\n\r\n{code:obj-c}\r\n-(void)setRelavtiveOffset:(id)arg\r\n{\r\n alert.relativeOffset = [TiUtils doubleValue:arg] / 1000;\r\n}\r\n{code}\r\n\r\nThis causes the following code to not set an alert properly:\r\n\r\n{code:javascript}\r\n// get or create an Event object named \"event\"\r\nvar a = event.createAlert({ relativeOffset: 0 });\r\na.setRelativeOffset(-60 * 60 * 1000);\r\nevent.setAlerts([a]);\r\nevent.save();\r\n{code}\r\n\r\nThe resulting event will have an alert at the time of the event, not one hour before.", "attachment": [], "flagged": false, "summary": "iOS: Titanium.Calendar.Alert.setRelativeOffset method does not work because of misspelling", "creator": { "name": "pegli", "key": "pegli", "displayName": "Paul Mietz Egli", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pegli", "key": "pegli", "displayName": "Paul Mietz Egli", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "3.2.0.GA, iOS", "comment": { "comments": [ { "id": "287842", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Moving this ticket to engineering as I verified that setRelativeOffset is spelled incorrectly as setRelavtiveOffset in TiCalendarAlert.m file.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-12T03:37:12.000+0000", "updated": "2014-01-12T03:37:12.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }