Making sure DTSTAMP property will have a value for all events

git-svn-id: svn://10.0.0.236/trunk@124871 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mostafah%oeone.com 2002-07-09 20:24:43 +00:00
parent edb0a778de
commit 1239d1c0e6

View File

@ -157,6 +157,13 @@ oeICalEventImpl::oeICalEventImpl()
if( NS_FAILED( rv = NS_NewDateTime((oeIDateTime**) &m_recurend ))) {
m_recurend = nsnull;
}
if( m_stamp ) {
PRTime nowinms = PR_Now();
PRInt64 usecpermsec;
LL_I2L( usecpermsec, PR_USEC_PER_MSEC );
LL_DIV( nowinms, nowinms, usecpermsec );
m_stamp->m_datetime = ConvertFromPrtime( nowinms );
}
m_id = nsnull;
m_title = nsnull;
m_description = nsnull;