[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-pim
Subject:    Re: [Kde-pim] About KOrganizer's timezone setting
From:       "David Jarvie" <lists () astrojar ! org ! uk>
Date:       2007-07-30 15:16:28
Message-ID: 7650.S0VKQUNDQxA=.1185808588.squirrel () www ! sensical ! net
[Download RAW message or body]

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@kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic