Skip to content
This repository has been archived by the owner on Nov 11, 2021. It is now read-only.

Commit

Permalink
[kcalcore] Add one day when exporting all day events. Contributes to …
Browse files Browse the repository at this point in the history
…JB#47814
  • Loading branch information
dcaliste committed Jun 16, 2020
1 parent 7f0aa9a commit c6db3d2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions kcalcore/icalformat_p.cpp
Expand Up @@ -299,12 +299,8 @@ icalcomponent *ICalFormatImpl::writeEvent( const Event::Ptr &event,
icaltimetype end;
KDateTime dt = event->dtEnd();
if ( event->allDay() ) {
#if !defined(KCALCORE_FOR_MEEGO)
// +1 day because end date is non-inclusive.
end = writeICalDate( dt.date().addDays( 1 ) );
#else
end = writeICalDate( dt.date() );
#endif
icalcomponent_add_property( vevent, icalproperty_new_dtend( end ) );
} else {
if ( dt != event->dtStart() ) {
Expand Down

0 comments on commit c6db3d2

Please sign in to comment.