warning date() on installation
- 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/install/lib/install_manager/install_manager.class.php on line 156
possible solution: load default config to use in installation
Updated by Stefaan Vanbillemont almost 13 years ago
When did you get this warning? During the installation? Keep in mind that we are developing a worldwide product, so setting Europe/Brussels is a possible fix but only for a very limited amount of people if you consider the entire world using Chamilo.
And if it is only a warning, don't know if we should pay so much attention to it. After the installation the administrator has the option to select the correct timezome.
Updated by Tim Brouckaert almost 13 years ago
This was indeed during the installation on a PHP5.3 system.
If you don't care about the warning (and it's only to show the year below), you can also change line 156 in install_manager.class.php
$links = '© ' . date('Y');
$links = '© ' . @date('Y');
this will suppress the warning.