warning date() on every page
on installations with PHP 5.3.x, constant warning:
Warning: date(): 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 /Users/tim/Sites/chamilo2.0/tracking/lib/data_manager/database.class.php on line 337
solution: add ini_set('date.timezone', 'Europe/Brussels) or date_default_timezone_set('Europe/Brussels') in an config-file.
Occurs only in versions >= 5.3.0
Updated by Tim Brouckaert almost 10 years ago
- Category set to 21
- Assignee set to Tim Brouckaert
- % Done changed from 0 to 50
when adding the lines
$timezone = LocalSetting :: get('platform_timezone');
to line 204-205 problem is solved.
why is there a conditional check on getting timezone in line 285?