Foros del Web » Programando para Internet » PHP » Frameworks y PHP orientado a objetos »

Date Error

Estas en el tema de Date Error en el foro de Frameworks y PHP orientado a objetos en Foros del Web. NO se como arreglar este error Severity: Warning Message: date(): It is not safe to rely on the system's timezone settings. You are *required* to ...
  #1 (permalink)  
Antiguo 29/11/2012, 18:40
 
Fecha de Ingreso: octubre-2011
Ubicación: USA
Mensajes: 166
Antigüedad: 12 años, 6 meses
Puntos: 19
Pregunta Date Error

NO se como arreglar este error

Severity: Warning

Message: 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 the timezone 'UTC' for now, but please set date.timezone to select your timezone.

Filename: helpers/date_helper.php

Line Number: 94

Saludos
  #2 (permalink)  
Antiguo 29/11/2012, 18:53
Avatar de masterpuppet
Software Craftsman
 
Fecha de Ingreso: enero-2008
Ubicación: Montevideo, Uruguay
Mensajes: 3.550
Antigüedad: 16 años, 3 meses
Puntos: 845
Respuesta: Date Error

El warning te esta diciendo como solucionarlo, lo mas sencillo es agregar al inicio del script

Código PHP:
Ver original
  1. date_default_timezone_set('Europe/London');//modifica el timezone acorde a tus necesidades

http://php.net/manual/en/function.da...mezone-set.php

y dependiendo del fw talves tengas una forma mas elegante de solucionarlo.

Saludos.
__________________
http://es.phptherightway.com/
thats us riders :)
  #3 (permalink)  
Antiguo 29/11/2012, 19:53
 
Fecha de Ingreso: octubre-2011
Ubicación: USA
Mensajes: 166
Antigüedad: 12 años, 6 meses
Puntos: 19
Respuesta: Date Error

Gracias lo habia puesto en la vista principal pero no en el controlador donde vuelvo a utilizar la funcion mdate();

Etiquetas: date, php
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 18:36.