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

    I’m using Ditto at the moment and am trying to use the params:

    &dateFormat=`%b <br /> %e`


    Unfortunately, nothing appears.

    However, it works when I do this:

    &dateFormat=`%b <br /> %d`



    Though I’m not liking the ’0’ at the beginning of the day of the month.

    Am I doing something wrong?

    Also I don’t wish to use PHX as I’ve had significant problems with it conflicting with Quickedit in the past.

    Edit -> I’ve tried using PHx too and I’m facing the same problem - %d works, but %e doesn’t.
      • 18397
      • 3,250 Posts
      What locale is your PHP install set to?
        • 29703
        • 217 Posts
        Quote from: Mark at Mar 05, 2008, 12:32 AM

        What locale is your PHP install set to?

        Hmm. I haven’t a clue.

        Where would I look for such a thing?

        My default timezone is Europe/London in phpinfo()
          • 22563
          • 63 Posts
          Hi,

          same problem over here on my local test page using the uniformserver app.
          %d is working %e does not.
            • 7231
            • 4,205 Posts
            Try it in a straight php file outside of modx and ditto. This may be related to your OS.

            From the php docs:
            Not all conversion specifiers may be supported by your C library, in which case they will not be supported by PHP’s strftime(). Additionally, not all platforms support negative timestamps, therefore your date range may be limited to no earlier than the Unix epoch. This means that e.g. %e, %T, %R and %D (there might be more) and dates prior to Jan 1, 1970 will not work on Windows, some Linux distributions, and a few other operating systems.
              [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

              Something is happening here, but you don&#39;t know what it is.
              Do you, Mr. Jones? - [bob dylan]
              • 22563
              • 63 Posts
              Try it in a straight php file outside of modx and ditto. This may be related to your OS.
              you are right...
                • 29703
                • 217 Posts
                I’m just going to leave it in a format that works, then change it when I upload.