]> git.mxchange.org Git - friendica.git/commitdiff
Fix Undefined index: timezone in Protocol\Diaspora
authorHypolite Petovan <hypolite@mrpetovan.com>
Tue, 16 Oct 2018 22:29:08 +0000 (18:29 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Tue, 16 Oct 2018 22:29:08 +0000 (18:29 -0400)
src/Protocol/Diaspora.php

index 71280a20de5f2dfb0577b59c47ad92d34a0bd6af..0c3a52b2d3810ede4ce05e3348773486d8fda19a 100644 (file)
@@ -3430,12 +3430,9 @@ class Diaspora
                /// @todo - establish "all day" events in Friendica
                $eventdata["all_day"] = "false";
 
-               if (!$event['adjust']) {
+               $eventdata['timezone'] = 'UTC';
+               if (!$event['adjust'] && $user['timezone']) {
                        $eventdata['timezone'] = $user['timezone'];
-
-                       if ($eventdata['timezone'] == "") {
-                               $eventdata['timezone'] = 'UTC';
-                       }
                }
 
                if ($event['start']) {