{ "id": "139754", "key": "AC-1506", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2015-04-06T23:46:19.000+0000", "created": "2014-11-14T14:52:15.000+0000", "labels": [ "TCSupportTriage", "andorid", "calendar", "event" ], "versions": [], "issuelinks": [], "assignee": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "updated": "2016-03-08T07:37:57.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": "14550", "name": "Appcelerator Modules", "description": "Please enter tickets related to Modules here." } ], "description": "{code:title=Ti.Calendar|borderStyle=solid}\r\nvar moment = require(\"alloy/moment\");\r\nvar calendar = OS_IOS ? Ti.Calendar.defaultCalendar : Ti.Calendar.selectableCalendars[0];\r\n\r\nvar details = {\r\n title: \"Event is recorded with wrong date\",\r\n description: \"one day earlier form given date\",\r\n begin: moment.unix(\"1415976478\").toDate(), //Fri, 14 Nov 2014\r\n end: moment.unix(\"1415976478\").toDate(), //Fri, 14 Nov 2014\r\n allDay: true\r\n};\r\nvar event = calendar.createEvent(details);\r\nif(OS_IOS){\r\nevent.save(Ti.Calendar.SPAN_THISEVENT);\r\n}\r\n{code}\r\n\r\nThe above code creates a event on 14th Nov on iOS and 13th Nov on Android. Seems a bug with android calendar module.", "attachment": [], "flagged": false, "summary": "Ti.Calendar.Event.begin / end takes one day earlier than the given date on android", "creator": { "name": "mano_mykingdom", "key": "mano_mykingdom", "displayName": "Manojkumar Murugesan", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "mano_mykingdom", "key": "mano_mykingdom", "displayName": "Manojkumar Murugesan", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Titanium Studio & SDK - 3.4.0.GA\r\nMac OSX 10.10\r\nXcode 6 & iPad 2 Simulator\r\nAndroid 4.2 & 4.4 Genymotion Emulator / Samsun Galaxy Quatro", "comment": { "comments": [], "maxResults": 2, "total": 2, "startAt": 0 } } }