[Kde-pim] KBlog library

Christian Weilbach christian_weilbach at web.de
Sun Mar 18 13:10:21 GMT 2007


Am Sonntag 18 März 2007 schrieb David Jarvie:
> On Sunday 18 March 2007 02:44:21 Christian Weilbach wrote:
> > Am Mittwoch 13 September 2006 schrieb David Jarvie:
> > > On Wednesday 13 September 2006  4:27, Allen Winter wrote:
> > > > you are using QDateTimes.  Better change over to KDateTimes.
> > > >   But we can probably address that later too.  We all have a lot of
> > > > work changing over to KDateTime.
> > >
> > > There are not many date/time values in the kblog code, so it won't be a
> > > big issue. But as Allen says, it would be better to future-proof your
> > > code by using KDateTime rather than QDateTime for compatibility with
> > > other parts of kdepimlibs and kdepim. I see that you are converting
> > > date/time values to text for storage - you will need in that case to
> > > allow for storing the time zone name alongside the date and time. The
> > > time zone name is obtainable by KDateTime::timeZone()->name().
> > >
> > > A small note: QDateTime::currentDateTime() (and the equivalent
> > > KDateTime methods) are static, so you don't need an instance to call it
> > > with.
> >
> > Why is KXmlRpcClient using QDateTime, by the way? Because KDateTime has
> > no advantages and Xml-Rpc always uses UTC by default?
>
> I don't know what KXmlRpcClient is about or what standards it has to adhere
> to, so I wasn't in a position to judge how to change it when I did the
> KDateTime conversion in kdepim. If you know what time zone it should use
> (perhaps UTC ??) then it would be a good idea to convert it to KDateTime.

This is not clearly stated. Most people assume UTC, as far as I can read on 
the web. I would say it is good standard, but it should be adjustable, if the 
server claims to use sth. different.

Cheers,
Christian


_______________________________________________
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