Fixed calculation of recurrence with exceptions

This commit is contained in:
mostafah%oeone.com 2003-01-10 15:57:33 +00:00
Родитель e91def8b7a
Коммит 508cd16d59
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -1052,10 +1052,10 @@ icaltimetype oeICalEventImpl::GetNextRecurrence( icaltimetype begin, bool *isbeg
if( icaltime_compare( end , begin ) <= 0 )
continue;
struct icaltimetype nextday = begin;
struct icaltimetype nextday = next;
nextday.hour = 0; nextday.minute = 0; nextday.second = 0;
icaltime_adjust( &nextday, 1, 0, 0, 0 );
if( icaltime_compare( nextday, end ) < 0 ) {
if( icaltime_compare( nextday , begin ) > 0 && icaltime_compare( nextday, end ) < 0 ) {
PRTime nextdayinms = ConvertToPrtime( nextday );
if( !IsExcepted( nextdayinms ) ) {
nextpropagation = nextday;