We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20363
    • 3 Posts
    Hello,

    Been messin’ around with Revolution Beta 5 the last couple of days, and I really like it.

    Anyway, I’m trying to display the date the document was published on. Somehow, all I get is the date January 1 1970 and the time 01:33, no matter which document I’m viewing. Are there any settings I’m missing, or is it just a bug? Any ideas?

    [[*publishedon:date=`%H:%M, %B %e, %Y`]]

      • 22303 MODX Staff
      • 10,725 Posts
      [[*publishedon:strtotime:date=`%H:%M, %B %e, %Y`]]


      This is different in Revo because publishedon is automatically returned in the MySQL datetime format rather than as a raw unix timestamp and the date filter works on timestamps, not datetime strings.
        • 20363
        • 3 Posts
        Thanks!