Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> DateTime i osrzeżenie Strict Standards
NeVeS
post
Post #1





Grupa: Zarejestrowani
Postów: 6
Pomógł: 0
Dołączył: 25.03.2005

Ostrzeżenie: (0%)
-----


Poniższy kod:
Kod
$date = new DateTime();    
$date->setTimezone(new DateTimeZone('Europe/Warsaw'));
$dzisiaj = $date->format("Y-m-d");

generuje poniższe ostrzeżenie:
Cytat
Strict Standards: DateTime::__construct() [function.DateTime---construct]: 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 E:\htdocs\bc\trunk\lib\Statistic.class.php on line 55


Łaj? jak sie tego pozbyć ;-)?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
batman
post
Post #2





Grupa: Moderatorzy
Postów: 2 921
Pomógł: 269
Dołączył: 11.08.2005
Skąd: 127.0.0.1




Cytat(Piniek @ 1.04.2008, 21:35:49 ) *
(...)ktura(...)

Sorki za OT, ale krew mnie zalewa. To słowo pisze się tak: która!
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 5.10.2025 - 23:28