Roundcube Community Forum

 

Taskbar plugin: mktime <-> time in error.log

Started by HiperGlow, November 10, 2010, 04:55:47 AM

Previous topic - Next topic

HiperGlow

Quote[10-Nov-2010 07:14:47] PHP Strict Standards:  mktime() [function.mktime]: 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. We selected 'Europe/Paris' for '1.0/no DST' instead in E:\RoundCube\plugins\taskbar\taskbar.css.php on line 6
[10-Nov-2010 07:14:47] PHP Strict Standards:  mktime() [function.mktime]: You should be using the time() function instead in E:\sites\RoundCube\plugins\taskbar\taskbar.css.php on line 6

If I change mktime to time, then the error disappears in the log file. Is that okay, I am not that familiar with PHP time funktions yet?
It this errors in my configuration or should this be changed in the code?

Perhaps I should mention this is on W2008R2 and PHP claims to be 5.2.14 -

alec

Just disable logging of STRICT warnings in php.ini.

HiperGlow

Quote from: alec;31180Just disable logging of STRICT warnings in php.ini.

Thanks, I will try that