Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Diferencia de Hora en PHP y Servidor

Discussion in 'Discusión en Español' started by aantigual, May 17, 2016.

  1. aantigual

    aantigual Member

    Joined:
    Jul 23, 2014
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hola a todos,
    En mi país, (Chile) este sábado cambiaron el horario, por lo cual la configuración de
    'America/Santiago' ya no es GTM-3, ahora es GTM-4
    La hora del servidor está correcta, pero la hora cuando se consulta por php tiene el horario antiguo ejemplo:

    Hora actual de servidor (Configurada en WHM con 'America/Santiago')
    usuario@servidor: date
    Tue May 17 22:20:43 CLT 2016
    22:30:50

    Hora PHP
    date_default_timezone_set('America/Santiago');
    echo date("H:i:s"); = 23:20:43


    ¿Alguna idea donde pueda corregir esto?

    Saludos!
     

    Attached Files:

  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,699
    Likes Received:
    1,790
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice