Skip to content

Commit

Permalink
Merge pull request #394 from pi-hole/fix/PHPwarningCentOS
Browse files Browse the repository at this point in the history
Check if time zone is set to mute some PHP warnings
  • Loading branch information
AzureMarker authored Feb 7, 2017
2 parents 3a002ce + f5c4065 commit ca8debe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/pi-hole/php/data.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@
$privacyMode = false;
}

// Check if time zone is set
// https://github.com/pi-hole/AdminLTE/pull/394
if (!date_default_timezone_get("date.timezone")) {
date_default_timezone_set("UTC");
}

/******* Public Members ********/
function getSummaryData() {
$domains_being_blocked = gravityCount();
Expand Down

0 comments on commit ca8debe

Please sign in to comment.