Thread: PHP Warning
View Single Post
  #1  
Old 22nd May 2021, 12:59
elvira's Avatar
elvira elvira is offline
Senior Member
 
Join Date: Jan 2008
Slovenia
Posts: 172
Default PHP Warning
Hello all,


I have this warning in announce.php, so what is to do.


Code:
[Sat May 22 12:55:52.087372 2021] [:error] [pid 19406] [client 86.61.53.162:36312] PHP Warning:  strtotime(): 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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/admin/web/noviteti.net/public_html/announce.php on line 160
Code:
[Sat May 22 12:55:52.087409 2021] [:error] [pid 19406] [client 86.61.53.162:36312] PHP Warning:  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

line 160 and 161 is:


Code:
$dt = strtotime(date('Y-m-d H:i:s')) - 180;
$dt = sqlesc(date('Y-m-d H:i:s', $dt));
Reply With Quote