aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2025-04-18 22:38:45 +0200
committerMario Vavti <mario@mariovavti.com>2025-04-18 22:38:45 +0200
commitcace4c6c65438cc90efb51ec3098df715c194f31 (patch)
treee7a49a63077085565c077aecafd08671fa50ec1a /tests
parentd7aff9a4dd30a624a724edd638e41cf66add9b6b (diff)
downloadvolse-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 'tests')
-rw-r--r--tests/unit/Lib/MessageFilterTest.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unit/Lib/MessageFilterTest.php b/tests/unit/Lib/MessageFilterTest.php
index e1b6d8476..0a2aea0c6 100644
--- a/tests/unit/Lib/MessageFilterTest.php
+++ b/tests/unit/Lib/MessageFilterTest.php
@@ -12,6 +12,9 @@ class MessageFilterTest extends UnitTestCase {
* @dataProvider evaluate_provider
*/
public function test_evaluate(string $incl, string $excl, bool $result) : void {
+ // This is for simpler handling of the timestamps
+ date_default_timezone_set('UTC');
+
$item = [
'title' => '',
'body' => "A grasshopper spent the summer hopping about in the sun and singing to his heart's content. One day, an ant went hurrying by, looking very hot and weary.\r\n#story #grasshopper #ant",