Skip to content

Commit 3d39f73

Browse files
committed
fixed timezone in tests
1 parent b29d05c commit 3d39f73

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/bootstrap.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
use Symfony\Bundle\FrameworkBundle\Console\Application;
66
use Symfony\Component\Console\Input\ArrayInput;
77

8+
// needed to avoid encoding issues when running tests on different platforms
9+
setlocale(LC_ALL, 'en_US.UTF-8');
10+
11+
// needed to avoid failed tests when other timezones than UTC are configured for PHP
12+
date_default_timezone_set('UTC');
13+
814
require dirname(__DIR__) . '/vendor/autoload.php';
915

1016
(new Dotenv())->bootEnv(dirname(__DIR__) . '/.env');

0 commit comments

Comments
 (0)