error Warning: date() [function.date] ó Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings

Salen los siguientes errore en una aplicación PHP ejemplo joomla (sucede cuando se actualiza de versión el PHP del server)

***********************************************************************

Warning: strtotime() [function.strtotime]: 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 'America/Bogota' for 'COT/-5.0/no DST' instead in /home/........................

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 'America/Bogota' for 'COT/-5.0/no DST' instead in /home/............................

**************************************************************************

SOLUCION: Crear un archivo llamado php.ini con la siguiente información:

[Date]
; Define la zona por defecto usada por las funciones date
date.timezone = "America/Bogota"

***************************************************************************

Problemas con date_diff  ??   en algunos casos ha funcionado al cambiarla por datediff  (sin el underscore  _  )

subalo al directorio donde se encuentra su aplicación

  • 48 Korisnici koji smatraju članak korisnim
Je li Vam ovaj odgovor pomogao?

Vezani članci

Premature end of script headers

Si recibe un error 500 del servidor interno y verifica que sus archivos de registro muestren...

Limitaciones PHP en hosting Compartido

PHP se ha configurado para utilizar la configuración siguiente en nuestros servidores de Hosting...

Qué es PHPSUEXEC?

QUE ES PHPSUEXECLas diferencias entre phpsuexec y “php regular”. Cuando es usada la conexión...

Error 500 - Internal Server Error - PHP

Esto puede deberse a varios factores. Lo primero que debe comprobar es que los permisos del...

Mi script en PHP me da un error al tratar de guardar información en un directorio Temporal?

Tenemos restricciones sobre escribir archivos fuera de su propio directorio asignado, lo que debe...