зеркало из https://github.com/mozilla/pjs.git
Fixed exceptions not being respected on start dates
This commit is contained in:
Родитель
1736e6f7c7
Коммит
2f4e78cbde
|
@ -36,7 +36,7 @@
|
|||
|
||||
|
||||
#include <oeIICal.h>
|
||||
#include <oeICalImpl.h>
|
||||
#include "oeICalImpl.h"
|
||||
#include <nsIServiceManager.h>
|
||||
#include "nsIComponentRegistrar.h"
|
||||
|
||||
|
|
|
@ -975,8 +975,13 @@ icaltimetype oeICalEventImpl::GetNextRecurrence( icaltimetype begin, bool *isbeg
|
|||
*isbeginning = true;
|
||||
}
|
||||
|
||||
if( icaltime_compare( m_start->m_datetime , begin ) > 0 )
|
||||
return m_start->m_datetime;
|
||||
if( icaltime_compare( m_start->m_datetime , begin ) > 0 ) {
|
||||
if( !m_recur )
|
||||
return m_start->m_datetime;
|
||||
PRTime nextinms = ConvertToPrtime( m_start->m_datetime );
|
||||
if( !IsExcepted( nextinms ) )
|
||||
return m_start->m_datetime;
|
||||
}
|
||||
|
||||
//for non recurring events
|
||||
if( !m_recur ) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче