-rw-r--r-- | library/backend/event.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/library/backend/event.cpp b/library/backend/event.cpp index 0003fe9..d906f19 100644 --- a/library/backend/event.cpp +++ b/library/backend/event.cpp @@ -613,16 +613,13 @@ QDateTime Event::end() const { \internal */ QDateTime Event::end( bool actual ) const { - QDateTime dt = TimeConversion::fromUTC( endUTC ); - + /* small work around... */ if ( actual && typ == AllDay ) { - QTime t = dt.time(); - t.setHMS( 23, 59, 59 ); - dt.setTime( t ); + return QDateTime( TimeConversion::fromUTC( startUTC ).date(), QTime(23, 59, 59 ) ); } - return dt; + return TimeConversion::fromUTC( endUTC ); } /*! \internal |