We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 39583
    • 103 Posts
    If I put todays date, 25-06-2014 12:15 am using the usual date selector in the settings tab of a resource and then use:

    [[*publishedon:strtotime:date=`%d.%m.%Y`]]


    Then my output is 12.06.2014, thirteen days before today. Any ideas? Seems to be working anywhere else.

    EDIT: Also if I put an earlier date I get 12.06.2014.

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

    [ed. note: phacer last edited this post 12 years, 3 months ago.]
      --
      André
      • 30585
      • 833 Posts
      What do you get when you unpublich and republish the resource?
        A MODx Fanatic
        • 39583
        • 103 Posts
        Quote from: treigh at Jun 25, 2014, 02:38 PM
        What do you get when you unpublich and republish the resource?

        Same! sad
          --
          André
        • discuss.answer
          • 39583
          • 103 Posts
          problem was that I was using getResources combined with a * and not +. Strange that it gives me a date anyway!
            --
            André
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            * means the value for the current resource; the resource with the getResources snippet on it. So if you have a "blog" resource using getResources to generate a list of blog posts, it was displaying the date for the "blog" resource itself in every list item.
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org