Check if time zone is set the mute some PHP warnings

This commit is contained in:
DL6ER
2017-02-06 15:59:20 +01:00
parent 8c821357ff
commit f5c4065b89

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();