We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30319
    • 406 Posts
    I’m re-using the blog items from the sample site into a development site.
    In the ditto english configuration file, I set:

    $_lang['dateFormat'] = "%A, %B %e, %Y"; 


    Upon using [+date+] in a chunk, the day never displays.
    I have checked and re-checked that %e is the correct item to use for displaying the day (1-31).

    What I get upon displaying the blog page is:

    By Default admin account on Monday, March , 2010

    No day number displays, why??

    Thank you, Tom

    P.S. I have also tried %d but don’t want the leading zero, I have also tried stopping/starting Apache (Xampp).

    P.P.S. I have ALSO tried &dateFormat=`%A, %B %e, %Y` in the ditto call...same thing happens.
      • 22303 MODX Staff
      • 10,725 Posts
      From http://php.net/strftime:
      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, so your date range may be limited to no earlier than the Unix epoch. This means that %e, %T, %R and, %D (and possibly others) - as well as dates prior to Jan 1, 1970 - will not work on Windows, some Linux distributions, and a few other operating systems. For Windows systems, a complete overview of supported conversion specifiers can be found at » MSDN.

      I’m assuming you are on a Windows platform.
        • 30319
        • 406 Posts
        Quote from: OpenGeek at Mar 01, 2010, 01:18 PM

        I’m assuming you are on a Windows platform.

        OIC -- your assumption is correct.

        I went to the MSDN link, Windows only supports %d, I can change it to %e when the site goes live.

        %d not working earlier was fixed by restarting apache for the millionth time.

        Thank you, Tom