Hey everyone,
My host moved my site to a new server, everything functions except I get this error by every story on the home page
Code:
Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /path/to/my/site/mainfile.php on line 565
Can anyone help me out with this? How do I fix it.
Nuke 6.0
here is the lines of code
Code:
function formatTimestamp($time) {
global $datetime, $locale;
setlocale ("LC_TIME", "$locale");
ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})", $time, $datetime);
$datetime = strftime(""._DATESTRING."", mktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1]));
$datetime = ucfirst($datetime);
return($datetime);