[Kde-pim] KDE/kdepimlibs/kcal
Thorsten Staerk
thorsten at staerk.de
Tue Sep 9 20:08:04 BST 2008
On Tuesday 09 September 2008 14:51:35 Thorsten Staerk wrote:
> > On Tuesday 9 September 2008 6:03, Thorsten Staerk wrote:
> >> SVN commit 858920 by tstaerk:
> >>
> >> In kmail invitations, show the meeting time in the local time zone.
> >> BUGS:170512
> >> CCMAIL:kde-pim at kde.org
> >> --Thiline, and those below, will be ignored--
> >>
> >> M kcal/icalformat.cpp
> >>
> >>
> >> M +1 -0 icalformat.cpp
> >>
> >>
> >> --- trunk/KDE/kdepimlibs/kcal/icalformat.cpp #858919:858920
> >> @@ -580,6 +580,7 @@
> >>
> >> icalcomponent_free( message );
> >> icalcomponent_free( calendarComponent );
> >> + incidence->shiftTimes( cal->timeSpec(), KDateTime::Spec::LocalZone()
> >> );
> >> return new ScheduleMessage( incidence, method, status );
> >> }
> >
> > I don't know enough about the use of ScheduleMessage to know whether this
> > commit is correct or not, but I feel uneasy about this use of
> > shiftTimes(). The main question is whether the ScheduleMessage instance
> > returned can ever be written back into a calendar file (remembering that
> > other applications than KMail may use this method, e.g. KOrganizer). If
> > it can be written to a calendar file (as seems very likely), it is likely
> > to produce unwanted errors.
> >
> > In particular, if the incidence can contain a recurrence, then it is
> > almost certainly the wrong thing to do, since changing the time zone for
> > some recurrences can have unpredictable effects on the times that the
> > occurrences are scheduled for, due to seasonal time changes.
> >
> > If my doubts are valid, then the change should be reverted and the time
> > correction should be made in the display code, not in the incidence data
> > itself.
>
> but then, if I accept, the wrong data would be written into my calendar,
> right? Testing this out...
>
I would like to describe why this fix is very important to me. I live in CET
and work in an office with about 20 colleagues who are partly using kmail for
their office work. I get about 50% of my invitations from peers in another
time zone, and our mail server is configured to use UTC on its invitations.
Within the last 4 years, no one of my colleagues has ever received an
invitation mail with a correct time in kmail. This is a major reason to use
other mail clients. I do not want this because I love kmail...
kmail, I want a child from you ;)
As far as I can see the returned schedulemessage is not entered into the
calendar - no matter if I have my patch applied or not, the calendar entry is
correct.
Regarding your other point (recurrence over seasonal time changes) I have not
found a bug yet (researching on). So, please let the time display be correct
at least in non-recurring invitations :)
Thorsten
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
More information about the kde-pim
mailing list