Set default timezone to prevent stupid test errors

This commit is contained in:
Timothy Warren 2016-07-18 13:06:37 -04:00
parent 672552a1e8
commit ead6f8b487

View File

@ -6,6 +6,14 @@
use Aviat\Ion\Json; use Aviat\Ion\Json;
use Aviat\AnimeClient\AnimeClient; 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 // Global functions
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------