We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1511
    • 144 Posts
    When using ditto to display articles, I have a correct date shown.
    My server is -2 hours shifted (MODx configuration) and all is displayed well.

    But when showing the same article list through Reflect, the time-zone shift is ignored.
      • 18397
      • 3,250 Posts
      Do you have this on a page that I could see? I’m unable to duplicate the problem on my test server.
        • 1511
        • 144 Posts
        In the meanwhile I’ve researched the problem a bit more and found out that I was using the getField snippet to retrieve the timestamp and phx to format it (sorry for the mess).

        If I use [+date+] placeholder the timestamp is the same as in Reflect, but the difference is exactly the "Server offset time" settings in the configuration.
        The timestamp in the database is 1174295514 (10:11 AM) but Ditto displays (08:11 AM).

        It seems that I should set the Server offset time to 0 and everything will be ok, since it is not affecting anything else. Or is it?