Set default timezone to prevent stupid test errors

This commit is contained in:
Timothy Warren 2016-07-18 13:06:37 -04:00
parent c0c90eb565
commit 23fa88bb33

View File

@ -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
// -----------------------------------------------------------------------------