[Radiant] Radius Tag Date Format

Sean Cribbs seancribbs at gmail.com
Mon Mar 3 17:21:59 CST 2008


It uses Time.strftime internally: 
http://www.ruby-doc.org/core/classes/Time.html#M000297

IIRC, %F is not valid in a strftime string.

Sean

Ben Morrow wrote:
> I'm using a basically unmodified version of the "Stylized Blog"
> template.
>
> I want to use a custom date format but I can't get it to work. In the
> following example, the first two dates do not display at all. The third
> one (the one that ships with Radiant) does display.
>
>   <p class="info">on <r:date format="%F %d, %Y at %g:%i %a" /></p>
>   <p class="info">Posted by <r:author /> on <r:date format="%F %d, %Y"
> /></p>
>   <p class="info">Posted by <r:author /> on <r:date format="%b %d, %Y"
> /></p>
>
> Do I have to define my custom date formats before I can use them?
>
> Thanks in advance,
>
> Ben
>   



More information about the Radiant mailing list