mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
Fixed calculation of recurrence with exceptions
This commit is contained in:
parent
e91def8b7a
commit
508cd16d59
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user