J'utilise comme d'habitude la fonction date, et j'ai activé les erreurs STRICT sur le serveur.
J'ai ces messages d'erreurs :
J'ai pas très bien compris le fonctionnement de la fonction date() dans PHP. Quelqu'un pourrait m'expliquer cette histoire de timezone?Strict Standards: date_default_timezone_get() [function.date-default-timezone-get.php]: 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 '2.0/DST' instead in C:\Inetpub\www\index.php on line 44
string(12) "Europe/Paris"
Strict Standards: date() [function.date.php]: 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 '2.0/DST' instead in C:\Inetpub\www\kernel\methods.php on line 173
Merci