From 858b047efb5627824438cb3877e7bec0cebb3751 Mon Sep 17 00:00:00 2001 From: zautrix Date: Fri, 03 Jun 2005 23:10:45 +0000 Subject: fixxx --- (limited to 'libkcal/event.cpp') diff --git a/libkcal/event.cpp b/libkcal/event.cpp index de8dceb..9b99855 100644 --- a/libkcal/event.cpp +++ b/libkcal/event.cpp @@ -171,11 +171,11 @@ void Event::setDuration(int seconds) setHasEndDate(false); Incidence::setDuration(seconds); } -QDateTime Event::getNextAlarmDateTime( bool * ok, int * offset ) const +QDateTime Event::getNextAlarmDateTime( bool * ok, int * offset, QDateTime start_dt ) const { bool yes; - QDateTime incidenceStart = getNextOccurence( QDateTime::currentDateTime(), &yes ); + QDateTime incidenceStart = getNextOccurence( start_dt, &yes ); if ( ! yes || cancelled() ) { *ok = false; return QDateTime (); @@ -209,7 +209,7 @@ QDateTime Event::getNextAlarmDateTime( bool * ok, int * offset ) const } } if ( enabled ) { - if ( alarmStart > QDateTime::currentDateTime() ) { + if ( alarmStart > start_dt ) { *ok = true; * offset = off; return alarmStart; -- cgit v0.9.0.2