Foros del Web » Programando para Internet » PHP »

Problema con la funcion date()

Estas en el tema de Problema con la funcion date() en el foro de PHP en Foros del Web. Me aparece el siguiente dialogo: Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the ...
  #1 (permalink)  
Antiguo 14/06/2011, 15:27
50l3r
Invitado
 
Mensajes: n/a
Puntos:
Problema con la funcion date()

Me aparece el siguiente dialogo:

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting 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 'Europe/Paris' for '2.0/DST' instead in C:\xampp\htdocs\funciones\usuarios\login.php on line 23

tengo el php.ini definido asi:

Código PHP:
[Date]
Defines the default timezone used by the date functions
http://php.net/date.timezone
date.timezone "Europe/Paris"

http://php.net/date.default-latitude
;date.default_latitude 31.7667

http://php.net/date.default-longitude
;date.default_longitude 35.2333

http://php.net/date.sunrise-zenith
;date.sunrise_zenith 90.583333

http://php.net/date.sunset-zenith
;date.sunset_zenith 90.583333 
Y en el config.php que defino en mi fichero raiz al principio de todo asi:

date_default_timezone_set('Europe/Paris');

Alguna idea de porque me puede estar dando ese warning?

Un saludo y gracias
  #2 (permalink)  
Antiguo 14/06/2011, 17:14
Avatar de stramin  
Fecha de Ingreso: marzo-2008
Ubicación: Cubil felino
Mensajes: 1.652
Antigüedad: 16 años, 1 mes
Puntos: 336
Respuesta: Problema con la funcion date()

prueba esto:

echo date_default_timezone_get();

y dime que te sale
__________________
El objetivo de este foro es orientar al usuario como un favor y no como una obligación.

Yo soy de los que dan puntos por aporte :D

Etiquetas: date, funcion
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 12:15.