From 95ca6f635428ecfc13cecf06cb4162952d47267d Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Mon, 24 Aug 2020 18:27:40 +0200 Subject: [PATCH] Display "Track date only"-chores as all-day events on the calendar (fixes #941) --- changelog/60_UNRELEASED_2020-xx-xx.md | 1 + services/CalendarService.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/changelog/60_UNRELEASED_2020-xx-xx.md b/changelog/60_UNRELEASED_2020-xx-xx.md index 5d0dcc90..22a43621 100644 --- a/changelog/60_UNRELEASED_2020-xx-xx.md +++ b/changelog/60_UNRELEASED_2020-xx-xx.md @@ -44,6 +44,7 @@ ### Calendar improvements/fixes - Events are now links to the corresponding page (thanks @zsarnett) - Fixed a PHP warning when using the "Share/Integrate calendar (iCal)" button (thanks @tsia) +- Fixed that "Track date only"-chores were always displayed at 12am (are now displayed as all-day events) ### API improvements/fixes - Breaking changes: diff --git a/services/CalendarService.php b/services/CalendarService.php index 826263c8..b160f17e 100644 --- a/services/CalendarService.php +++ b/services/CalendarService.php @@ -74,7 +74,8 @@ class CalendarService extends BaseService 'title' => $titlePrefix . $chore->name . $assignedToText, 'start' => $currentChoreEntry->next_estimated_execution_time, 'date_format' => 'datetime', - 'link' => $this->UrlManager->ConstructUrl('/choresoverview') + 'link' => $this->UrlManager->ConstructUrl('/choresoverview'), + 'allDay' => $chore->track_date_only == 1 ); } }