Skip to content

Commit 79e4f40

Browse files
committed
fix timezone warnings in tests
1 parent 3ec2db5 commit 79e4f40

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/bootstrap.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,10 @@
2727
require __DIR__ . '/' . $classFile;
2828
}
2929
});
30+
31+
// to avoid the following warning incl. fail of all date-using tests:
32+
//
33+
// DateTime::createFromFormat(): It is not safe to rely on the system's timezone settings.
34+
// You are *required* to use the date.timezone setting or the date_default_timezone_set() function.
35+
//
36+
date_default_timezone_set('UTC');

0 commit comments

Comments
 (0)