]> git.mxchange.org Git - friendica.git/commitdiff
Issue 10914: Display events in the feed in the author's timezone
authorMichael <heluecht@pirati.ca>
Sat, 5 Feb 2022 11:29:50 +0000 (11:29 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 5 Feb 2022 11:29:50 +0000 (11:29 +0000)
src/Protocol/Feed.php

index 528800c1ee45c01af214ebd34726c76e70d39fb9..048e9974ce4f10bf2969951dc361185a14be4d31 100644 (file)
@@ -898,6 +898,11 @@ class Feed
 
                $cachekey = "feed:feed:" . $owner_nick . ":" . $filter . ":" . $last_update;
 
+               // Display events in the users's timezone
+               if (strlen($owner['timezone'])) {
+                       DI::app()->setTimeZone($owner['timezone']);
+               }
+
                $previous_created = $last_update;
 
                // Don't cache when the last item was posted less then 15 minutes ago (Cache duration)