Merge pull request #394 from pi-hole/fix/PHPwarningCentOS

Check if time zone is set to mute some PHP warnings
This commit is contained in:
Mcat12
2017-02-07 17:54:47 -05:00
committed by GitHub
+6
View File
@@ -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();