From ead6f8b48750798780c3ed2baa43b9bdf30ea7bd Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Mon, 18 Jul 2016 13:06:37 -0400 Subject: [PATCH] Set default timezone to prevent stupid test errors --- tests/bootstrap.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/bootstrap.php b/tests/bootstrap.php index b988e8c1..9df960d1 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -6,6 +6,14 @@ use Aviat\Ion\Json; use Aviat\AnimeClient\AnimeClient; +// Work around the silly timezone error +$timezone = ini_get('date.timezone'); +if ($timezone === '' || $timezone === FALSE) +{ + ini_set('date.timezone', 'GMT'); +} + + // ----------------------------------------------------------------------------- // Global functions // -----------------------------------------------------------------------------