Tag: cws_src680_kaddrbook User: ebischoff Date: 05/09/14 00:44:40 Modified: /dba/connectivity/source/drivers/kab/ kcondition.cxx
Log: Better timestamp handling, not completly correct though. File Changes: Directory: /dba/connectivity/source/drivers/kab/ ================================================ File [changed]: kcondition.cxx Url: http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/kab/kcondition.cxx?r1=1.1.2.1&r2=1.1.2.2 Delta lines: +8 -3 ------------------- --- kcondition.cxx 13 Sep 2005 18:20:36 -0000 1.1.2.1 +++ kcondition.cxx 14 Sep 2005 07:44:37 -0000 1.1.2.2 @@ -2,9 +2,9 @@ * * $RCSfile: kcondition.cxx,v $ * - * $Revision: 1.1.2.1 $ + * $Revision: 1.1.2.2 $ * - * last change: $Author: ebischoff $ $Date: 2005/09/13 18:20:36 $ + * last change: $Author: ebischoff $ $Date: 2005/09/14 07:44:37 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -109,7 +109,12 @@ case KAB_FIELD_UID: return addressee.uid(); case KAB_FIELD_REVISION: - return addressee.revision().toString("dd/MM/yy mm:hh"); +return addressee.revision().toString("yyyy-MM-dd hh:mm:ss"); +// That's not the correct way to do it. +// Timestamps deserve a KabCondition class of their own. +// The syntax for such queries should be like +// {ts '2004-03-29 12:55:00.000000'} +// They should also support operators like '<' or '>=' default: ::KABC::Field::List aFields = ::KABC::Field::allFields(); return aFields[m_nFieldNumber - KAB_DATA_FIELDS]->value(addressee); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
