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 Users Found This Useful
Was this answer helpful?

Related Articles

Funciones exec, shell_exec, system, popen y otras deshabilitadas por seguridad

PHP tiene muchas funciones que se pueden usar para hackear el servidor si no se usa...

Script para corregir el horario Time Zone en PHP para que se refleje el horario de la Ciudad de Bogotá

En el código de programación de PHP puede corregir  la zona horaria. Por ejemplo:...

allow_url_fopen esta OFF

   La función allow_url_fopen se encuentra desactivada en todos nuestros servidores, tanto para...

Script para revisar Time Zone en Servidores

<?phpdate_default_timezone_set('America/Bogota');$script_tz = date_default_timezone_get();if...

1 Que es Php?

PHP es un lenguaje de programación interpretado, diseñado originalmente para la creación de...