From: Hypolite Petovan Date: Sat, 3 Dec 2022 00:37:39 +0000 (-0500) Subject: Fix event start time not being properly converted to UTC X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=349436a77a3ff41b54c1828b90fcfad1a89aaab7;p=friendica.git Fix event start time not being properly converted to UTC - This was triggering unexpected time comparison errors --- diff --git a/src/Module/Calendar/Event/API.php b/src/Module/Calendar/Event/API.php index f8ddaf40bd..ab9a5b5772 100644 --- a/src/Module/Calendar/Event/API.php +++ b/src/Module/Calendar/Event/API.php @@ -152,7 +152,7 @@ class API extends BaseModule $share = intval($request['share'] ?? 0); $isPreview = intval($request['preview'] ?? 0); - $start = DateTimeFormat::convert($strStartDateTime ?? DBA::NULL_DATETIME, $this->timezone); + $start = DateTimeFormat::convert($strStartDateTime ?? DBA::NULL_DATETIME, 'UTC', $this->timezone); if (!$noFinish) { $finish = DateTimeFormat::convert($strFinishDateTime ?? DBA::NULL_DATETIME, 'UTC', $this->timezone); } else {