Ver Mensaje Individual
  #1 (permalink)  
Antiguo 01/05/2003, 03:45
daniph
 
Fecha de Ingreso: agosto-2001
Ubicación: Gran Canaria (España)
Mensajes: 430
Antigüedad: 22 años, 8 meses
Puntos: 0
Error en funcion !!!!

Alguien sabe a que se debe este error????

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

La funcion afectada es esta:
Código PHP:
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);

Gracias