setlocale()

Ahojda!
Na mych strankach (hwtuning.wz.cz) nejak blbne fce setlocale(). Podle mne je to v poradku, ale stale to pise:

Warning: setlocale() [function.setlocale]: Passing locale category name as string is deprecated. Use the LC_* -constants instead.


Tady je uryvek z kodu:

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);
}

Nevi nahodou nekdo, co je tam spatne, popr jak to opravit? Diky!
zmen
setlocale ("LC_TIME", "$locale");
na
setlocale (LC_TIME, "$locale");