mirror of
https://github.com/pi-hole/web.git
synced 2026-07-08 15:34:18 +01:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user