smtc0097 / mysql-cacti-templates

Automatically exported from code.google.com/p/mysql-cacti-templates
GNU General Public License v2.0
0 stars 0 forks source link

add date_default_timezone_set #180

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In the file ss_get_mysql_stats.php, we need to add date_default_timezone_set. 

Just now I found if you don't add this, the data receive from the db server 
will produce some more words that will cause non in the picture.

And the script executed in the command line will display these:

Strict Standards: date(): It is not safe to rely on the system's timezone 
settings. Please use the date.timezone setting, the TZ environment variable 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.

add date_default_timezone_set("xxx/xxx") in the configuration region.

Original issue reported on code.google.com by tongton...@gmail.com on 10 Feb 2011 at 10:48

GoogleCodeExporter commented 8 years ago

Original comment by baron.schwartz on 10 Feb 2011 at 11:18