From 4914ee423f347f62607837b2704193025eeab37a Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 5 Feb 2022 11:29:50 +0000 Subject: [PATCH] Issue 10914: Display events in the feed in the author's timezone --- src/Protocol/Feed.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Protocol/Feed.php b/src/Protocol/Feed.php index 528800c1ee..048e9974ce 100644 --- a/src/Protocol/Feed.php +++ b/src/Protocol/Feed.php @@ -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) -- 2.39.5