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

    I have a ditto call :
    [[Ditto?parents=`38` &display=`5` &removeChunk=`Comments` &tpl=`DittoTemplateCenter` &language=`francais-utf8` &sortDir=`DESC` &paginate=`1` &paginateAlwaysShowLinks=`1` &id=`arc` &dateSource=`pub_date`]]


    The problem is that the date are in unix format, for example : "Published date : 1222502681."

    Could anyone please help me ?
      • 25663 MODX Staff
      • 12,272 Posts
      This might offer some insight (related to using dates in Ditto):

      http://ditto.modxcms.com/tutorials/sort-by-a-date-tv.html
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 36592
        • 970 Posts
        Quote from: bépobépo at Sep 27, 2008, 10:16 AM

        The problem is that the date are in unix format, for example : "Published date : 1222502681."
        I guess you are using [+pub_date+] in your Ditto template chunk ’DittoTemplateCenter’.
        I think replacing [+pub_date+] with [+date+] should work.