]> git.mxchange.org Git - friendica.git/commitdiff
Fix event start time not being properly converted to UTC
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 3 Dec 2022 00:37:39 +0000 (19:37 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sun, 4 Dec 2022 11:37:36 +0000 (06:37 -0500)
- This was triggering unexpected time comparison errors

src/Module/Calendar/Event/API.php

index f8ddaf40bd14e9e429ec7bf3352c73a902b83cda..ab9a5b5772e9c414a9ac81c0ed7d044f819df3d6 100644 (file)
@@ -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 {