We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14104
    • 4 Posts
    Hi all

    I am working in MODx Revolution 2.0.5 and trying to put a timestamp in one of my ressources:

    I using the following to produce a timestamp [[*publishedon:strtotime:date=`%B %d, %Y at %H:%M`]] and it works (output = "March 17, 2011 at 10:03") now however I want to add six hours to the timestamp ie. get the output to be March 17, 2011 at 16:03 and I can’t figure out how to do it.

    [[*publishedon:strtotime:date=`%B %d, %Y at %H:%M +0600`]] becomes "March 17, 2011 at 10:03 +0600" which is not quite what i want.

    I hope this makes sense and that somebody can give me a clue.
      • 29019 ☆ A M B ☆
      • 104 Posts
      Try this:

      [[*publishedon:strtotime:add=`21600`:date=`%B %d, %Y at %H:%M`]]


      The 21600 comes from 60s * 60m * 6h.
        www.darkstardesign.com

        Are you in the Nashville area? Join us for our next MODX meetup!