You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Mon Jul 15 16:06:52 2013] [error] [client XXXX] PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /var/www/html/ganglia/header.php on line 5, referer: http:/XXXXX.YYY.ZZZ/ganglia/?...
Corresponding code snippet:
if (isset($_GET['date_only'])) {
$d = date("r");
echo $d;
exit(0);
}
The text was updated successfully, but these errors were encountered:
"Prior to PHP 5.4.0 only: Querying the host operating system (if supported and allowed by the OS). This uses an algorithm that has to guess the timezone. This is by no means going to work correctly for every situation. A warning is shown when this stage is reached. Do not rely on it to be guessed correctly, and set date.timezone to the correct timezone instead."
One should use date_default_timezone_get() only when service is hosted on server when he doesn;t have root privileges to change php.ini or can't set date.timezone in .htaccess due to webserver privileges. Also it is used rather when we wan't to set another timezone for some reasons. In that case imo there should be some configuration directive setting this in conf_default.php.
[Mon Jul 15 16:06:52 2013] [error] [client XXXX] PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /var/www/html/ganglia/header.php on line 5, referer: http:/XXXXX.YYY.ZZZ/ganglia/?...
Corresponding code snippet:
if (isset($_GET['date_only'])) {
$d = date("r");
echo $d;
exit(0);
}
The text was updated successfully, but these errors were encountered: