Issue 10914: Display events in the feed in the author's timezone

This commit is contained in:
Michael 2022-02-05 11:29:50 +00:00
parent 925b3ab565
commit 4914ee423f
1 changed files with 5 additions and 0 deletions

View 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)