]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/Feed.php
Added Documentation
[friendica.git] / src / Protocol / Feed.php
index 8cb08f65df3788a93cf2d528d3837ff360c4dbed..048e9974ce4f10bf2969951dc361185a14be4d31 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -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)