Грешки с date()

chepa

Registered
Защо навсякаде където имам date()
Като тук при този еррор


Код:
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 '2.0/no DST' instead in D:\xampp\htdocs\banlist\include\rcon_hl_net.inc on line 369

Или тук с strftime() ми излизат различни еррори и то не всеки път при
рефреш се оправят как да ги махна от XAMPP ли е или ако има значение
скоро си преинсталирах Windows ("+ -" 2 дена);


Код:
Warning: strftime() [function.strftime]: 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 '2,0/no DST' instead in D:\xampp\htdocs\banlist\include\smarty\plugins\modifier.date_format.php on line 53
16.12.2010 - 15:41:35 	infinite

Оправих се по следният начин:

Намерих този ред


Код:
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
;date.timezone =

И го направих така

Код:
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = CET
 

Back
Горе