Error in page report time format after using memcache.php to monitor memcache:
Warning: Date (): It is not safe for rely on the system ' s timezone settings. You is *required* to use the Date.timezone setting or the Date_default_timezone_set () function. In case you used any of those methods and you is still getting this warning, your most likely misspelled the timezone Iden Tifier. We selected the timezone ' UTC ' for now, but please set Date.timezone to select your timezone. Inch/usr/local/nginx/html/memcache.php on line736
The number of memecache.php related lines can be listed according to the prompts;
Define (' Date_format ', ' y/m/d h:i:s ');
736 echo ' <tr class=tr-0><td class=td-0>start time</td><td> ', date (date_format,$ memcachestatssingle[$server [' Stat '] [' time ']-$memcacheStatsSingle [$server] [' Stat '] [' uptime ']), ' </td>< /tr> ';
Workaround:
Define (' Date_format ', ' y/m/d h:i:s ');
Add a row above
Date_default_timezone_set ("PRC");
It is strange that other methods, such as setting the value of Date.timezone in php.ini, do not take effect regardless of setting and restarting the PHP-FPM process;
This article is from the "Margin with Wish" blog, please be sure to keep this source http://281816327.blog.51cto.com/907015/1622008
Fixed an example of an error in memcache.php