diff --git a/NEWS b/NEWS index c3a310d73..d14538110 100644 --- a/NEWS +++ b/NEWS @@ -6,6 +6,7 @@ Bug fixes - [web] fixed composition of new messages from Contacts module - [web] fixed autocompletion of LDAP-based groups (#3673) - [web] fixed month view when current month covers six weeks (#3663) + - [web] fixed negative offset when converting a regular event to an all-day event (#3655) 3.1.0 (2016-05-18) ------------------ diff --git a/SoObjects/Appointments/iCalEvent+SOGo.m b/SoObjects/Appointments/iCalEvent+SOGo.m index afacd6d97..3924dd998 100644 --- a/SoObjects/Appointments/iCalEvent+SOGo.m +++ b/SoObjects/Appointments/iCalEvent+SOGo.m @@ -371,14 +371,7 @@ if (isAllDay) { nbrDays = ((float) abs ([aptEndDate timeIntervalSinceDate: aptStartDate]) / 86400) + 1; - // Convert all-day start date to GMT (floating date) - ud = [[context activeUser] userDefaults]; - timeZone = [ud timeZone]; - offset = [timeZone secondsFromGMTForDate: aptStartDate]; - allDayStartDate = [aptStartDate dateByAddingYears: 0 months: 0 days: 0 - hours: 0 minutes: 0 - seconds: offset]; - [self setAllDayWithStartDate: allDayStartDate + [self setAllDayWithStartDate: aptStartDate duration: nbrDays]; } else