Foros del Web » Programando para Internet » PHP »

error con date()..

Estas en el tema de error con date().. en el foro de PHP en Foros del Web. HOLA AMIGOS TENGO UN PROBLEMA NO SE SI SEA DE CONFIGURACION, ES EL SIGUIENTE ESTE ES MI CODIGO PARA MOSTRAR LA FECHA Código PHP: echo  ...
  #1 (permalink)  
Antiguo 29/10/2008, 14:12
 
Fecha de Ingreso: marzo-2005
Mensajes: 372
Antigüedad: 19 años, 1 mes
Puntos: 1
error con date()..

HOLA AMIGOS TENGO UN PROBLEMA NO SE SI SEA DE CONFIGURACION, ES EL SIGUIENTE ESTE ES MI CODIGO PARA MOSTRAR LA FECHA
Código PHP:
echo date("d \d\e\l m \d\e\l Y"); 
PERO EL RESULTADO ME DA ESTO

Strict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for '-6.0/no DST' instead in C:\www\fecha.php on line 2

29 del 10 del 2008


COMO VEN AL ULTIMO SI ME DA LA FECHA, PERO TAMBIEN ME APARECE ESE ERROR

ME PUEDEN AYUDAR GRACIAS...
  #2 (permalink)  
Antiguo 29/10/2008, 14:34
Avatar de GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 17 años, 10 meses
Puntos: 2135
Respuesta: error con date()..

Hola dancresi,

Eso es porque no tienes un timezone definido, antes de llamar a date() llama a la función date_default_timezone_set() con tu timezone.

Saludos.
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 08:55.