From 29d529cba0b2552662423b8bc62ecd83d70a675d Mon Sep 17 00:00:00 2001 From: Lukas Schaefer Date: Tue, 2 Jun 2026 14:10:06 +0200 Subject: [PATCH] Fix: timezone object being used instead of the string for default Signed-off-by: Lukas Schaefer --- lib/Service/AssignmentsService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Service/AssignmentsService.php b/lib/Service/AssignmentsService.php index 1315297a..b5351705 100644 --- a/lib/Service/AssignmentsService.php +++ b/lib/Service/AssignmentsService.php @@ -59,7 +59,7 @@ public function createAssignment(?string $userId, string $title, string $prompt, throw new BadRequestException('Invalid recurrence rule', previous: $e); } if ($timezone === null) { - $timezone = $this->dateTimeZone->getTimeZone(userId: $userId); + $timezone = $this->dateTimeZone->getTimeZone(userId: $userId)->getName(); } try { $assignment->setTimezone($timezone);