From a355a58898d0d08d797f872751254cfa958387c1 Mon Sep 17 00:00:00 2001 From: zautrix Date: Sat, 18 Sep 2004 16:32:35 +0000 Subject: time fixes --- (limited to 'kabc/addressbook.cpp') diff --git a/kabc/addressbook.cpp b/kabc/addressbook.cpp index 3ec0795..d03dea3 100644 --- a/kabc/addressbook.cpp +++ b/kabc/addressbook.cpp @@ -460,8 +460,13 @@ void AddressBook::insertAddressee( const Addressee &a, bool setRev ) (*it).setResource( standardResource() ); if ( changed ) { - if ( setRev ) - (*it).setRevision( QDateTime::currentDateTime() ); + if ( setRev ) { + // get rid of micro seconds + QDateTime dt = QDateTime::currentDateTime(); + QTime t = dt.time(); + dt.setTime( QTime (t.hour (), t.minute (), t.second () ) ); + (*it).setRevision( dt ); + } (*it).setChanged( true ); } -- cgit v0.9.0.2