[Kde-pim] About KOrganizer's timezone setting

David Jarvie lists at astrojar.org.uk
Mon Jul 30 16:16:28 BST 2007


On Monday 30 July 2007 16:03, Reinhold Kainhofer wrote:
> Am Montag, 30. Juli 2007 schrieb David Jarvie:
>> As I have already said to Bruno privately, I agree that events(QDate)
>> isn't satisfactory. events(KDateTime) should handle the time zone in the
>> KDateTime parameter (currently it ignores it). And either events(QDate)
>> should be removed,
>
> -1. Quite often you need to get the events of a specific day (e.g.
> "Today's
> tasks", list of items in the agenda view, etc.)

What I meant was that you would specify a KDateTime whose date would be
for the day you want, in the appropriate time zone. This could be a
date-only KDateTime value. I'm inclined to think that it would be better
to keep a events(QDate, KDateTime::Spec) method which is clearer to use
for people who aren't particularly familiar with what KDateTime can do.

>> or it should have an additional KDateTime::Spec
>> parameter to specify the time zone. Opinions?
>
> Please note that in the context of calendars, some events don't have a
> time
> and timezone attached! E.g. New years day is on Jan 1 in every timezone.
> However in that case, the start of the "event" in UTC varies in UTC time!

Here you can use KDateTime::ClockTime as the time spec.

-- 
David Jarvie.
KAlarm author & maintainer.
http://www.astrojar.org.uk/kalarm

_______________________________________________
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