From d00bd159d2a28c01bca8f60ae7aed7d984c7d18d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Wed, 19 Oct 2022 20:03:22 +0200 Subject: [PATCH] Avoid always setting the current time on card updates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/Service/CardService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Service/CardService.php b/lib/Service/CardService.php index cd45ca129..af0eb0103 100644 --- a/lib/Service/CardService.php +++ b/lib/Service/CardService.php @@ -337,7 +337,7 @@ class CardService { $card->setType($type); $card->setOrder($order); $card->setOwner($owner); - $card->setDuedate(new \DateTime($duedate)); + $card->setDuedate($duedate ? new \DateTime($duedate) : null); $resetDuedateNotification = false; if ( $card->getDuedate() === null ||