• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Error date ()..

zer0

Zer0!
Joined
Aug 8, 2008
Messages
286
Reaction score
0
Please i really need help whit that, u help me and i rep u :)

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 'America/New_York' for '-4.0/DST' instead in C:\xampp\htdocs\latestnews.php on line 22

helpur.png


:S how i can fix it??

PD: srry i post it in website downloads too :S
 
Go to latestnews.php find function date and add this before:
Code:
@

xd
 
mmm :S how i find function date?
<span class="NewsTickerDate">'.date("j M Y", $ticker['date']).' -</span>
??

like that? :S please i sux in php
<span class="NewsTickerDate">'.date("j M Y", $ticker['@date']).' -</span>
 
Code:
<span class="NewsTickerDate">'.@date("j M Y", $ticker['date']).' -</span>
 
Assuming that you are from Mexico, add this on the top of your index page.
PHP:
date_default_timezone_set('America/Mexico_City');
 
Back
Top