Какво означава тази грешка и как да я оправя?

plamen_003

Registered
Warning: date() [function.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/Helsinki' for '3.0/DST' instead in C:\xampp\htdocs\my1page\header.php on line 13
 
Или в php.ini си сетни timezone или във файловете ти го сетни.

(По-добре в php.ini, за да не трябва да го сетваш във всеки един файл...)

date_default_timezone_set('Europe/Sofia');
 
plamen_003 каза:
Аз използвам XAMPP и къде се намира php.ini?

В папка php се намира. Не забравяй след промяната да рестартираш сървъра :wink: при мен е така (без да съм го променял)
date.timezone = Europe/Sofia
 

Back
Горе