GNOME Bugzilla – Bug 558366
Evolution: Set timezone for Imported calendar items if none is specified.
Last modified: 2009-07-22 14:51:35 UTC
Please describe the problem: Imported calendar items can have a blank timezone field, which causes lots of problems for reminders for appointments. Steps to reproduce: * In Evolution, go: Calendars -> File -> Import -> Forward -> "import a single file" -> Forward -> Select the "calendar.ics" exported from old mail program -> set file type to "iCalendar (.ics)" -> Forward -> Forward -> Import. * Observe that I do not get many reminder notifications for these items, and those that I get seem to be at the wrong time. Reminder notifications for items added in Evolution seem to work okay. * Suspect that this is because the timezone field for these appointments is blank. Actual results: Expected results: What should happen: * When an ICS file is imported, any blank timezones should be replaced with the default timezone specified, as specified in Evolution's Edit -> Preferences -> General tab -> Timezone field. Does this happen every time? Other information:
On further comment: For people like me who have already imported their data into Evolution, it would be nice if calendar appointments with no timezone set were treated as if they had the default timezone set and/or if appointments could be bulk updated in some way to set their timezone to the default.
fwiw, rfc 2445 (iCalendar) says in section 4.3.5: The date with local time form is simply a date-time value that does not contain the UTC designator nor does it reference a time zone. For example, the following represents Janurary 18, 1998, at 11 PM: DTSTART:19980118T230000 Date-time values of this type are said to be "floating" and are not bound to any time zone in particular. They are used to represent the same hour, minute, and second value regardless of which time zone is currently being observed. --- Based on the spec I'd say this should be a not a bug, but in reality I'd say possibly give the user an option for this somewhere.
Created attachment 129326 [details] [review] proposed evo patch for evolution; This should help a bit.
Patch looks good. I think the default zone should also be set while importing at icalendar-importer.c.
Committed to trunk. Committed revision 37338. (In reply to comment #4) > I think the default zone should also be set while importing > at icalendar-importer.c. I wonder whether it's really necessary. It is good for proper time placement of the event, but in the import you do not use event times, do you? Please reopen if you thinks it's necessary also there.
It is always good to set the default timezone before opening the calendar. It ensure the default zone to be set in the backend.
*** Bug 268611 has been marked as a duplicate of this bug. ***