Skip to content

Commit

Permalink
Merge pull request #130 from mpodolian/bug/set-default-timezone-119
Browse files Browse the repository at this point in the history
Add a configuration step to check that the default timezone is set
  • Loading branch information
mnapoli committed Oct 11, 2015
2 parents a9d9163 + 6cbf50c commit 3a7e195
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/couscous
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ if (version_compare(phpversion(), '5.4', '<')) {
die('You must use PHP >= 5.4 in order to use Couscous. Please upgrade your PHP version.');
}

if (!ini_get('date.timezone')) {
date_default_timezone_set('UTC');
}

// Phar
if (isset($include)) {
require_once $include . '/vendor/autoload.php';
Expand Down

0 comments on commit 3a7e195

Please sign in to comment.