]> git.mxchange.org Git - friendica.git/commitdiff
Transmitting events to Diaspora does work again (#13777)
authorMichael Vogel <icarus@dabo.de>
Fri, 29 Dec 2023 23:43:14 +0000 (00:43 +0100)
committerGitHub <noreply@github.com>
Fri, 29 Dec 2023 23:43:14 +0000 (00:43 +0100)
src/Protocol/Diaspora.php

index 59918287abfc7bd8817093d7249e6ad9bc9f6449..a9ba52dcd0f178675dba430ba0216529d034bd5a 100644 (file)
@@ -3259,7 +3259,9 @@ class Diaspora
                /// @todo - establish "all day" events in Friendica
                $eventdata['all_day'] = 'false';
 
-               $eventdata['timezone'] = 'UTC';
+               // @todo Should be user timezone - but only if the event is supposed to be displayed
+               // in that specific timezone and not the user's timezone.
+               // $eventdata['timezone'] = 'UTC';
 
                if ($event['start']) {
                        $eventdata['start'] = DateTimeFormat::utc($event['start'], $mask);
@@ -3403,8 +3405,7 @@ class Diaspora
                        if ($item['event-id'] > 0) {
                                $event = self::buildEvent($item['event-id']);
                                if (count($event)) {
-                                       // Deactivated, since Diaspora seems to have problems with the processing.
-                                       // $message['event'] = $event;
+                                       $message['event'] = $event;
 
                                        if (
                                                !empty($event['location']['address']) &&