summaryrefslogtreecommitdiff
path: root/libopie/pim/orecur.cpp
Side-by-side diff
Diffstat (limited to 'libopie/pim/orecur.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/pim/orecur.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie/pim/orecur.cpp b/libopie/pim/orecur.cpp
index e3b45b4..eae1fdc 100644
--- a/libopie/pim/orecur.cpp
+++ b/libopie/pim/orecur.cpp
@@ -459,52 +459,52 @@ QString ORecur::toString()const {
buf += " rtype=\"";
switch ( data->type ) {
case ORecur::Daily:
buf += "Daily";
break;
case ORecur::Weekly:
buf += "Weekly";
break;
case ORecur::MonthlyDay:
buf += "MonthlyDay";
break;
case ORecur::MonthlyDate:
buf += "MonthlyDate";
break;
case ORecur::Yearly:
buf += "Yearly";
break;
default:
buf += "NoRepeat";
break;
}
buf += "\"";
if (data->days > 0 )
buf += " rweekdays=\"" + QString::number( static_cast<int>( data->days ) ) + "\"";
if ( data->pos != 0 )
buf += " rposition=\"" + QString::number(data->pos ) + "\"";
buf += " rfreq=\"" + QString::number( data->freq ) + "\"";
buf += " rhasenddate=\"" + QString::number( static_cast<int>( data->hasEnd ) ) + "\"";
if ( data->hasEnd )
buf += " enddt=\""
+ QString::number( OTimeZone::utc().fromUTCDateTime( QDateTime( data->end, QTime(12,0,0) ) ) )
+ "\"";
buf += " created=\"" + QString::number( OTimeZone::utc().fromUTCDateTime( data->create ) ) + "\"";
if ( data->list.isEmpty() ) return buf;
// save exceptions list here!!
ExceptionList::ConstIterator it;
ExceptionList list = data->list;
buf += " exceptions=\"";
QDate date;
for ( it = list.begin(); it != list.end(); ++it ) {
date = (*it);
if ( it != list.begin() ) buf += " ";
buf += QCString().sprintf("%04d%02d%02d", date.year(), date.month(), date.day() );
}
- buf += "\"";
+ buf += "\" ";
return buf;
}