CMS Error

Status
Not open for further replies.

Caraghhh

Member
Aug 11, 2012
54
1
Got this error at the top of my CMS which is making everything out of line on my CMS

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 you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/London' for '1.0/DST' instead in C:\xampp\htdocs\app\tpl\class.forms.php on line 90


this is C:\xampp\htdocs\app\tpl\class.forms.php line 90

$template->setParams('newsDate-' . $a, date("date_default_timezone_set(Europe/London)", $news['published']));
I changed the line to what it said in the error and its still not working

 

Evilsmoothie

Mad kung-fu artist
Feb 11, 2013
446
57
My class.forms doesn't even contain that. Try $template->setParams('newsDate-' . $a, date("d-m-y", $news['published'])); instead.
I've had this problem once before, but I don't know what I did to fix it.
 

Weasel

👄 I'd intercept me
Nov 25, 2011
4,132
2,456
The above would fix this error, as it is the default line of code given in RevCMS (which I assume you are using).

Problem solved, thread closed.
 
Status
Not open for further replies.

Users who are viewing this thread

Top