From ed2feaa9f7e2064e5b26ff678a25eb79ceae599b Mon Sep 17 00:00:00 2001 From: zautrix Date: Wed, 22 Sep 2004 01:13:09 +0000 Subject: Sync dialog fixes --- (limited to 'korganizer') diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index 7fae4a9..bc8625d 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp @@ -1151,8 +1151,8 @@ bool CalendarView::synchronizeCalendar( Calendar* local, Calendar* remote, int er = remote->rawIncidences(); inR = er.first(); QDateTime dt; - QDateTime cur = QDateTime::currentDateTime(); - QDateTime end = cur.addSecs( KOPrefs::instance()->mWriteBackInFuture * 3600 *24 *7 ); + QDateTime cur = QDateTime::currentDateTime().addDays( -7 ); + QDateTime end = cur.addDays( (KOPrefs::instance()->mWriteBackInFuture +1 ) *7 ); while ( inR ) { if ( inR->type() == "Todo" ) { Todo * t = (Todo*)inR; -- cgit v0.9.0.2