Hola a todos los amigos de esta maravillosa herramienta... les quiero pedir vuestra ayuda dado que lo instalé en un servidor CentOS release 6.5 (Final)con la última versión de Dolibarr estable 3.5.0 y todo iba perfecto hasta el momento en que quise visualizar el módulo de agenda, dándome este error:
"Warning: date_default_timezone_get(): 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 'UTC' for 'UTC/0.0/no DST' instead in /usr/share/dolibarr/htdocs/core/lib/functions.lib.php on line 1018 Warning: date_default_timezone_get(): 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 'UTC' for 'UTC/0.0/no DST' instead in /usr/share/dolibarr/htdocs/core/lib/functions.lib.php on line 1018 Warning: date_default_timezone_get(): 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 'UTC' for 'UTC/0.0/no DST' instead in /usr/share/dolibarr/htdocs/core/lib/functions.lib.php on line 1018 Warning: date_default_timezone_get(): 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 'UTC' for 'UTC/0.0/no DST' instead in /usr/share/dolibarr/htdocs/core/lib/functions.lib.php on line 1018 Warning: date_default_timezone_get(): 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 'UTC' for 'UTC/0.0/no DST' instead in /usr/share/dolibarr/htdocs/core/lib/functions.lib.php on line 1018 Warning: date_default_timezone_get(): 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 'UTC' for 'UTC/0.0/no DST' instead in /usr/share/dolibarr/htdocs/core/lib/functions.lib.php on line 1018 Warning: getdate(): 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 'UTC' for 'UTC/0.0/no DST' instead in /usr/share/dolibarr/htdocs/core/lib/functions.lib.php on line 973 Warning: date_default_timezone_get(): 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 'UTC' for 'UTC/0.0/no DST' instead in <<<<<c Warning: date_default_timezone_get(): 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 'UTC' for 'UTC/0.0/no DST' instead in..."
Me habla de la línea 1018 en la ruta /usr/share/dolibarr/htdocs/core/lib/functions.lib.php y cuando voy a buscar la línea 1018 me sale lo siguiente: 1018 if (empty($gm)) $localtz = new DateTimeZone(date_default_timezone_get());
Tambien me habla de la línea 973 que sale lo siguiente: 973 $arrayinfo=getdate($timestamp);
¿Qué debo modificar o cambiar para que me deje de mostrar estos warning...
Gracias
Problemas con visualización de módulo Agenda
Hola amoyat:
Tienes que configurar el PHP correctamente, en concreto debes poner el timezone de tu país en la directiva "date.timezone" de tu php.ini
Un saludo.
Tienes que configurar el PHP correctamente, en concreto debes poner el timezone de tu país en la directiva "date.timezone" de tu php.ini
Un saludo.
Desarrollador con categoría Almirante de Dolibarr.
¿Quiere soporte personalizado? Contacte conmigo.
¿Quiere soporte personalizado? Contacte conmigo.
Hola Marcosgdf,
Muchas gracias por tu respuesta hasta ahí había llegado pero cuando tengo que hacer el cambio del php.ini nose cómo hacerlo, te cuento yo soy de Chile, tu me podrías mostrar unas imágenes de cómo se haría en la práctica??? Disculpa las molestias pero me sería muy útil.
Un abrazo
Saludos
Muchas gracias por tu respuesta hasta ahí había llegado pero cuando tengo que hacer el cambio del php.ini nose cómo hacerlo, te cuento yo soy de Chile, tu me podrías mostrar unas imágenes de cómo se haría en la práctica??? Disculpa las molestias pero me sería muy útil.
Un abrazo
Saludos
Hola amoyat:
Me temo que no... depende del sistema operativo se encuentra en un sitio o en otro y yo no he trabajado con centos, busca el php.ini y dentro de ese archivo busca "date.timezone". Si tiene un punto y coma delante, quítaselo y pon la zona horaria
Saludos.
Me temo que no... depende del sistema operativo se encuentra en un sitio o en otro y yo no he trabajado con centos, busca el php.ini y dentro de ese archivo busca "date.timezone". Si tiene un punto y coma delante, quítaselo y pon la zona horaria
Saludos.
Desarrollador con categoría Almirante de Dolibarr.
¿Quiere soporte personalizado? Contacte conmigo.
¿Quiere soporte personalizado? Contacte conmigo.
estado checando esto
nano /etc/php5/apache2/php.ini
nano /etc/php5/cli/php.ini
;date.timezone =
ok asta este punto e llegado hay muchas paginas que marcan depues del timezone= America / Monterrey pero esta es mi pregunta como tiene que ser ?
;date.timezone = América / Mexico_City con el acento en América
;date.timezone = America / Mexico_City sin acento
;date.timezone = "América / Mexico_City" con comillas
como debes estar setenciado para que pueda funcionar ???????
nano /etc/php5/apache2/php.ini
nano /etc/php5/cli/php.ini
;date.timezone =
ok asta este punto e llegado hay muchas paginas que marcan depues del timezone= America / Monterrey pero esta es mi pregunta como tiene que ser ?
;date.timezone = América / Mexico_City con el acento en América
;date.timezone = America / Mexico_City sin acento
;date.timezone = "América / Mexico_City" con comillas
como debes estar setenciado para que pueda funcionar ???????
Advertencia: date_default_timezone_get (): Valor date.timezone no válido "América / Mexico_City ', seleccionamos la zona horaria" UTC "por ahora. en / usr / share / dolibarr / htdocs / core / lib / functions.lib.php on line 1018 Advertencia: date_default_timezone_get (): Valor date.timezone no válido "América / Mexico_City ', seleccionamos la zona horaria" UTC "por ahora. en / usr / share / dolibarr / htdocs / core / lib / functions.lib.php on line 1018 Advertencia: date_default_timezone_get (): Valor date.timezone no válido "América / Mexico_City ', seleccionamos la zona horaria" UTC "por ahora. en / usr / share / dolibarr / htdocs / core / lib / functions.lib.php on line 1018 Advertencia: date_default_timezone_get (): Valor date.timezone no válido "América / Mexico_City ', seleccionamos la zona horaria" UTC "por ahora. en / usr / share / dolibarr / htdocs / core / lib / functions.lib.php on line 1018 Warning: date (): Valor date.timezone no válido "América / Mexico_City ', seleccionamos la zona horaria" UTC "por ahora. en / usr / share / dolibarr / htdocs / comm / acción / index.php on line 77 Warning: date (): Valor date.timezone no válido "América / Mexico_City ', seleccionamos la zona horaria" UTC "por ahora. en / usr / share / dolibarr / htdocs / comm / acción / index.php on line 78 Warning: date (): Valor date.timezone no válido "América / Mexico_City ', seleccionamos la zona horaria" UTC "por ahora. en / usr / share / dolibarr / htdocs / comm / acción / index.php on line 79
aor este es el error que me pasa
aor este es el error que me pasa
Hola toby:
Debes introducir un valor válido. Aquí tienes una referencia http://es.php.net/manual/es/timezones.php
Un saludo.
Debes introducir un valor válido. Aquí tienes una referencia http://es.php.net/manual/es/timezones.php
Un saludo.
Desarrollador con categoría Almirante de Dolibarr.
¿Quiere soporte personalizado? Contacte conmigo.
¿Quiere soporte personalizado? Contacte conmigo.
si a mi es como tengo el archivo
nano /etc/php5/cli/php.ini
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = America / Mexico_City
bueno a si se lo deje
nano /etc/php5/cli/php.ini
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = America / Mexico_City
bueno a si se lo deje
Lo que te está diciendo es que no has introducido una zona horaria válida. Busca en internet sobre cómo configurarlo.
Un saludo.
Un saludo.
Desarrollador con categoría Almirante de Dolibarr.
¿Quiere soporte personalizado? Contacte conmigo.
¿Quiere soporte personalizado? Contacte conmigo.