From f4621d8388f4cc81a2df2db900fa2fac8f2264bb Mon Sep 17 00:00:00 2001 From: Michal Feher Date: Thu, 5 Jun 2025 13:54:24 +0200 Subject: [PATCH] no message --- be/app/Services/Office365/Office365Service.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/be/app/Services/Office365/Office365Service.php b/be/app/Services/Office365/Office365Service.php index 6f8b005..f99eb67 100644 --- a/be/app/Services/Office365/Office365Service.php +++ b/be/app/Services/Office365/Office365Service.php @@ -247,7 +247,7 @@ class Office365Service $subtasksToInsert[$i]['office365_change_key'] = $newSubtask['changeKey']; $subtasksToInsert[$i]['type'] = 'office365'; $subtasksToInsert[$i]['description'] = $newSubtask['body']['content']; - $subtasksToInsert[$i]['deadline'] = $newSubtask['end']['dateTime']; + $subtasksToInsert[$i]['deadline'] = Carbon::parse($newSubtask['end']['dateTime'])->setTimezone('Europe/Bratislava'); $subtasksToInsert[$i]['office365_location'] = $newSubtask['location']['displayName']; $subtasksToInsert[$i++]['is_finished'] = 0; } @@ -340,7 +340,7 @@ class Office365Service 'estimated_time' => round((strtotime($editedSubtask['end']['dateTime']) - strtotime($editedSubtask['start']['dateTime'])) / 3600, 1), 'description' => $editedSubtask['body']['content'], - 'deadline' => $editedSubtask['end']['dateTime'], + 'deadline' => Carbon::parse($editedSubtask['end']['dateTime'])->setTimezone('Europe/Bratislava'), 'office365_location' => $editedSubtask['location']['displayName'], ]);