diff options
author | Mario Vavti <mario@mariovavti.com> | 2025-04-18 22:38:45 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2025-04-18 22:38:45 +0200 |
commit | cace4c6c65438cc90efb51ec3098df715c194f31 (patch) | |
tree | e7a49a63077085565c077aecafd08671fa50ec1a /Zotlabs/Lib/MessageFilter.php | |
parent | d7aff9a4dd30a624a724edd638e41cf66add9b6b (diff) | |
download | volse-hubzilla-cace4c6c65438cc90efb51ec3098df715c194f31.tar.gz volse-hubzilla-cace4c6c65438cc90efb51ec3098df715c194f31.tar.bz2 volse-hubzilla-cace4c6c65438cc90efb51ec3098df715c194f31.zip |
strtotime() accounts with the timezone - set it to UTC for the stored timestamp
Diffstat (limited to 'Zotlabs/Lib/MessageFilter.php')
-rw-r--r-- | Zotlabs/Lib/MessageFilter.php | 4 |
1 files changed, 2 insertions, 2 deletions
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; } } |