EventKit created allday event spans two days in Calendar.app Day view.
| Originator: | john | ||
| Number: | rdar://13396189 | Date Originated: | 12th March 2013 |
| Status: | Open | Resolved: | |
| Product: | OSX SDK | Product Version: | OSX 10.8.2 |
| Classification: | Reproducible: | Always |
Summary:
In OSX 10.8 EventKit created all day events span an extra day in the Calendar.app Day list view.
Steps to Reproduce:
1. Open the attached XCode Project.
2. In the file 'CJMAppDelegate.m', modify the 'NSString *calendarIdentifier' to have the UID of a calendar. (Either local or iCloud - in the notes I've added an Applescript to return the UIDs.)
3. Compile and run the application.
4. Open the Calendar application in day view and observe the future event list.
Expected Results:
An all day event on the current date shown in the "Day" view's future events list.
Actual Results:
An all day event on the current date and also the following date shown in the "Day" view's future events list.
Regression:
Adding all day events works as expected when events are added manually in the Calendar application.
They also work as expected for all day events added by the depreciated CalCalendarStore API.
Using CalDAV to connect to Google Calendar, the event initially shows spanning 2 days, then reverts to a single day.
Notes:
(* Applescript to return lists of calendar names and UIDs.*)
tell application "Calendar"
calendars -- Needed to get around bug 10049078 that appears to be still there in OSX 10.8.
{name, uid} of calendars
end tell
(* script ends *)
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!