Author Topic: Taskbar plugin: mktime <-> time in error.log  (Read 6568 times)

Offline HiperGlow

  • Jr. Member
  • **
  • Posts: 15
Taskbar plugin: mktime <-> time in error.log
« on: November 10, 2010, 04:55:47 AM »
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 -

Offline alec

  • Hero Member
  • *****
  • Posts: 1,365
Taskbar plugin: mktime <-> time in error.log
« Reply #1 on: November 10, 2010, 05:31:24 AM »
Just disable logging of STRICT warnings in php.ini.

Offline HiperGlow

  • Jr. Member
  • **
  • Posts: 15
Taskbar plugin: mktime <-> time in error.log
« Reply #2 on: November 10, 2010, 05:42:27 AM »
Quote from: alec;31180
Just disable logging of STRICT warnings in php.ini.


Thanks, I will try that