We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 53127
    • 15 Posts
    ok so I have been working with modx for about 2 years now. I have used the strtotime:date='' output modifier countless times but I am currently hitting a wall and beginning to pull my hair out.

    I have a "rightNow" snippet that works perfect. If I do the snippet alone it's perfect and outputs Y-m-d H:i:s (but the actual values) but if I use the output modifier [[!rightNow:strtotime:date='%Y']] with any variation and additional values, I get "Tuesday, 03 January 2017 14:45:40" (it does update with a refresh).

    Any idea of what the heck is going on? Am I missing something obvious? Lol

    Thanks in advance!

    This question has been answered by donquicky. See the first response.

    • discuss.answer
      • 37105
      • 194 Posts
      It seems the output modifier is ignored completely.

      I notice you use
      [[!rightNow:strtotime:date='%Y']]
      instead of
      [[!rightNow:strtotime:date=`%Y`]]
      .

      Could that be the cause?
        Codeplaza Webdesign: for professional websites at low cost
        • 53127
        • 15 Posts
        Oh my gosh, that fixed it!!! And to think, a little voice warned that that may be the problem after about 15 minutes of troubleshooting!!!

        I am now on a PC vs a MAC and apparently that caused a complete brainfart that the single quote is not the same as a backtick...aye aye aye

        Thank you very much! #SOLVED