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

Commit

Permalink
Merge branch 'meego' into 'master'
Browse files Browse the repository at this point in the history
[kcalcore] Add one day when exporting all day events.  Contributes to JB#47814

See merge request mer-core/kcalcore!13
  • Loading branch information
chriadam committed Jun 17, 2020
2 parents 7f0aa9a + c6db3d2 commit 8aec62b
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 8aec62b

Please sign in to comment.