From: Michael Date: Sat, 5 Feb 2022 11:29:50 +0000 (+0000) Subject: Issue 10914: Display events in the feed in the author's timezone X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4914ee423f347f62607837b2704193025eeab37a;p=friendica.git Issue 10914: Display events in the feed in the author's timezone --- 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)