We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1561
    • 22 Posts
    Quote from: tkfm at Apr 16, 2008, 12:37 PM

    Use non-cached form [!...!].

    I’m finding a fix on 1969 issue. smiley
    Glad that the non-cache syntax did the trick. It helped a lot.

    Thank you tkfm


      An aspiring web designer & front-end web developer who is very much interested on the modern web.

      www.andrewabogado.com
      • 31837
      • 59 Posts
      I just wanted to THANKYOU I have been searching for the last 2 hours looking for a solution. I think this should be in the FAQs...
        • 37210
        • 131 Posts
        The pub_date placeholder always gives me problems and I never remember the solution!

        Good thing for posts like this! The DateTime snippet works perfectly. I used mine in a ditto call. Mine looks like this if I want to display the published date of each resource:

        [[DateTime? &format=`%B %d, %Y` &timestamp=`[+pub_date+]`]]
          • 13137
          • 204 Posts
          This is truly a life saver.

          I actually had to use two calls.
          In the summary chunk I used:
          [[DateTime? &format=`%B %d, %Y` &timestamp=`[+pub_date+]`]]


          And then in the template I used:
          [[DateTime? &format=`%B %d, %Y` &timestamp=`[*pub_date*]`]]


          Works like a charm, and saved me from going crazy tongue
            • 16430
            • 217 Posts
            Does it works fro FeedX snippet as well?
            I am trying to convert date from RSS to usual format readable for human.
            [[DateTime? &format=`%B %d, %Y` &timestamp=`[+PUBDATE+]`]]

            returns only 1.st January 1970
            If I use uncachced [!...!] it doesnt work at all....

              • 18373 ☆ A M B ☆
              • 3,141 Posts
              That depends on how FeedX is giving you the value in the [+pubdate+] placeholder. What does it output when you just include the placeholder on itself?
                Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

                Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
                • 16430
                • 217 Posts
                Quote from: Mark at Mar 04, 2011, 07:36 AM

                That depends on how FeedX is giving you the value in the [+pubdate+] placeholder. What does it output when you just include the placeholder on itself?

                It gets date from rss in default format:
                Mon, 16 May 2011 09:03:02 +0000