Merge pull request #11211 from annando/issue-10914-timezone

Issue 10914: Display events in the feed in the author's timezone
This commit is contained in:
Hypolite Petovan 2022-02-05 08:48:48 -05:00 committed by GitHub
commit 8a06c6db92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -898,6 +898,11 @@ class Feed
$cachekey = "feed:feed:" . $owner_nick . ":" . $filter . ":" . $last_update; $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; $previous_created = $last_update;
// Don't cache when the last item was posted less then 15 minutes ago (Cache duration) // Don't cache when the last item was posted less then 15 minutes ago (Cache duration)