We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10226
    • 412 Posts
    ... I am trying to use the link mentioned earlier to show a human readable date, but all I get is the unix date... Did I miss something?

    Thanks
      • 18397
      • 3,250 Posts
      Can you provide the debug output of your call?
        • 10226
        • 412 Posts
        debug enabled... http://sweetskies.fruitwerks.us/non_menu_items/nestbox_news.php

        I think I tried this before, but I added separate month day and year tv’s smiley
          • 36592
          • 970 Posts
          I think you should use [+date+] instead of [+nbn_date+] in your Ditto
          template chunk.
          <hr/>
          <h3>[+title+]</h3>
          <p>[+introtext+]</p>
          <p>[+date+]</p>
          
            • 10226
            • 412 Posts
            I was thinking that as well, but it renders a blank page.. sad
              • 36592
              • 970 Posts
              Hmm... I can not find ’date’ in your ditto debug output... I don’t understand...
              Why don’t you update your ditto to the latest version (2.1.0) ?
                • 10226
                • 412 Posts
                I have tried to do this with the publish date and the tv nbn_date. I am totally lost at this pint.

                Upgraded to ditto 2.1
                  • 25876
                  • 79 Posts
                  I’ve got another question regarding this topic.

                  I use ditto calls sorted by a date tv in unixtime (as in tutorial) and I want the standard value to be the date when a document is created.

                  Up to now, the standard value is empty, so I get "(not set)" when I create a new document.
                  I tried to put "@EVAL time();" in the standard value of the TV but it seems not to work ...

                  anyone can help?
                  thanks a lot!
                    • 18397
                    • 3,250 Posts
                    @EVAL time() will return the current system time whenever the tv is accessed, not when it is stored. There are a few topics that detail workarounds for this issue in the forums.
                      • 25876
                      • 79 Posts
                      ok, I understand.
                      I tried to search the forums, but the only threat i found contained the question, but no answer ...

                      could you maybe link me to a thread where the problem is solved?

                      thanks