MantisBT - CDash
View Issue Details
0011522CDash(No Category)public2010-11-26 06:322011-09-13 05:35
Rolf Eike Beer 
 
normalminoralways
newopen 
Linux
 
 
0011522: PHP warnings about timezone
PHP Warning: strtotime(): 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 'Europe/Berlin' for 'CET/1.0/no DST' instead in .../cdash/common.php on line 1444, referer: http://.../cdash/index.php?project=xyz&date=2010-11-26 [^]

PHP is 5.3.3, CDash is r2797
No tags attached.
Issue History
2010-11-26 06:32Rolf Eike BeerNew Issue
2011-05-17 03:12Yngve Inntjore LevinsenNote Added: 0026515
2011-09-13 05:35David SchneiderNote Added: 0027412

Notes
(0026515)
Yngve Inntjore Levinsen   
2011-05-17 03:12   
I can confirm this using version 1.8.2 on Arch Linux, php version 5.3.6.
(0027412)
David Schneider   
2011-09-13 05:35   
In PHP 5.1.0 date/time functions were rewritten. Since then a E_WARNING is emitted if the system timezone is used as default.

If you have access to php.ini just set the date.timezone to your location:
http://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone [^]

Otherwise you have to call date-default-timezone-set() at the begin of the script (perhaps in config.local.php):
http://php.net/manual/de/function.date-default-timezone-set.php [^]