Configuracion de timezone en ZDKNET

16 views
Skip to first unread message

aegui...@gmail.com

unread,
Apr 28, 2017, 8:13:47 AM4/28/17
to ZnetDK
Saludos a todos, copie el entorno de ZDKNET en mi servidor y corrio perfecto el instalador.

al momento de entrar en la apliacion modulo de perfiles de usuario me da este error.

"Uncaught exception 'Exception' with message 'DateTime::__construct(): 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.' in /var/www/html/CallerMatic/engine/core/general.php:71Stack trace:#0 /var/www/html/CallerMatic/engine/core/general.php(71): DateTime->__construct('now')#1 /var/www/html/CallerMatic/engine/core/view/users-ui-events.php(21): General::getCurrentW3CDate()#2 /var/www/html/CallerMatic/engine/core/response.php(261): include('/var/www/html/C...')#3 /var/www/html/CallerMatic/engine/core/maincontroller.php(165): Response->output()#4 /var/www/html/CallerMatic/engine/core/maincontroller.php(131): MainController::renderView('users', 'show')#5 /var/www/html/CallerMatic/inde - /var/www/html/CallerMatic/engine/core/general.php(71)"


no consigo como ingresar el nuevo UTC y cual es su formato.


alguno de uds sabe como pudiese resolverlo gracias.

Arturo Guillen Venezuela.

Pascal Martinez

unread,
Apr 29, 2017, 5:00:39 AM4/29/17
to ZnetDK
Hola Arturo,

Tu problema ocurre cuando la instrucción PHP siguiente esta llamada  :

$today = new \DateTime('now');

Es un error conocido relacionado con la configuración del huso horario ("timezone") en tu archivo php.ini. Tienes que probar en particular el parámetro date.timezone.

Saludos,

Pascal MARTINEZ

aegui...@gmail.com

unread,
May 5, 2017, 10:53:02 PM5/5/17
to ZnetDK
Hola Pascal gracias edite el php.ini y modifique la linea de date.timezone="America/Caracas" y funciono muy bien, claro reinicie el servicio para que lo tomara, pero todo salio muy bien gracias.
Reply all
Reply to author
Forward
0 new messages