Hello there i need a little help.
I keep getting this message in my php-nuke script
Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/bettyf/public_html/nuke/mainfile.php on line 565
And this is how the script looks
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],$dat
etime[2],$datetime[3],$datetime[1]));
$datetime = ucfirst($datetime);
return($datetime);
Could one of you kind people please tell me how the script should look