Revert "set default time zone for date"

This commit is contained in:
Adam Warner
2016-10-18 15:52:58 +01:00
committed by GitHub
parent 12b099ca02
commit b9f186befb
2 changed files with 7 additions and 6 deletions
+1 -2
View File
@@ -6,8 +6,7 @@ if (empty($ERRORLOG)) {
}
function pi_log($message) {
$date = exec("date +'%Y-%m-%d %H:%M:%S'");
error_log($date . ': ' . $message . "\n", 3, $GLOBALS['ERRORLOG']);
error_log(date('Y-m-d H:i:s') . ': ' . $message . "\n", 3, $GLOBALS['ERRORLOG']);
}
function log_and_die($message) {