From cace4c6c65438cc90efb51ec3098df715c194f31 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 18 Apr 2025 22:38:45 +0200 Subject: strtotime() accounts with the timezone - set it to UTC for the stored timestamp --- Zotlabs/Lib/MessageFilter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Zotlabs/Lib/MessageFilter.php') diff --git a/Zotlabs/Lib/MessageFilter.php b/Zotlabs/Lib/MessageFilter.php index da7181f78..fa3d61244 100644 --- a/Zotlabs/Lib/MessageFilter.php +++ b/Zotlabs/Lib/MessageFilter.php @@ -44,7 +44,7 @@ class MessageFilter { } elseif (str_starts_with($word, 'until=')) { $until = strtotime(trim(substr($word, 6))); - if ($until > strtotime($item['created'])) { + if ($until > strtotime($item['created'] . ' UTC')) { return false; } } @@ -98,7 +98,7 @@ class MessageFilter { } elseif (str_starts_with($word, 'until=')) { $until = strtotime(trim(substr($word, 6))); - if ($until > strtotime($item['created'])) { + if ($until > strtotime($item['created'] . ' UTC')) { return true; } } -- cgit v1.2.3