We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24731 ☆ A M B ☆
    • 211 Posts
    Hello, I just started noticing some strange time problem on my site. Whichever date I apply on a given document, it seems to get displayed 2 hours earlier on the front end. Ej.: if I set a document’s published time to 23:00 it will come up in the site as: 21:00

    I’ve tried several things:


    • I checked server time/zone and made sure it was correct. It is displaying the correct time.
    • I double checked my PHP configuration and it is also using the correct time/zone.
    • I loaded up the php info on modx manager to make sure the time settings were correct and indeed they are.

    My current solution or workaround is to specify at the top of phx plugin as well as my ditto language file the same timezone as I have configured in php and my server. This does work, when the document is requested via ditto or using phx, seems like the time is taken correctly. But in some areas where I pull the time without ditto and just through TV’s it seems to again showcase 2 hours prior the actual published time.

    Even so with my temporary solution, I never had to force a timezone at the top of a plugin or language file to get date/time correctly on the front end. Anyone has any ideas?

    Thanks.

    Jose R. Lopez