Im using PHP NUKE:
It was working fine until they updated the servers. Now it gives me this error about this code:
Warning: setlocale() [function.setlocale]: Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /usr/home/sites/www.pangearecordings.com/web/mainfile.php on line 565
Here is the code its referring to :
function formatTimestamp($time) {
global $datetime, $locale;
setlocale ("LC_TIME", "$locale"); (THIS ONE IS LINE 565)
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);
Any Help would be appreciated!!