View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011522CDash(No Category)public2010-11-26 06:322011-09-13 05:35
ReporterRolf Eike Beer 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
PlatformOSLinuxOS Version
Product Version 
Target VersionFixed in Version 
Summary0011522: PHP warnings about timezone
DescriptionPHP 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
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0026515)
Yngve Inntjore Levinsen (reporter)
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 (reporter)
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 [^]

 Issue History
Date Modified Username Field Change
2010-11-26 06:32 Rolf Eike Beer New Issue
2011-05-17 03:12 Yngve Inntjore Levinsen Note Added: 0026515
2011-09-13 05:35 David Schneider Note Added: 0027412


Copyright © 2000 - 2018 MantisBT Team