• 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!

Lastnews ERROR in WEBSITE

Auriaotbr

New Member
Joined
Feb 15, 2017
Messages
61
Reaction score
1
Hello everyone, I'm having this error if someone can help me thank you!





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/Sao_Paulo' for '-2.0/DST' instead in C:\xampp\htdocs\pages\latestnews.php on line 159

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/Sao_Paulo' for '-2.0/DST' instead in C:\xampp\htdocs\pages\latestnews.php on line 523





LINE 159 <span class="NewsTickerDate">'.date("d/m/Y", $ticker['date']).' -</span>

LINE 523 <div class="NewsHeadlineDate">'.date('M m Y', $thread['post_date']).' -</div>
 
Add this line in latestnews.php at the beginning just after <?php
PHP:
date_default_timezone_set('America/Sao_Paulo');
 
Solution
Back
Top