Content updated: Content updated: Content updated:

SSI timefmt suppress leading zero in the hour

37 views Asked by At

This Server Side Include fragment:

<!--#config timefmt="%a, %d%b'%y %I:%M%P %Z" -->
Content updated: <!--#flastmod virtual='../pages/$JLC_CONTENT_FILE' --> 

produces:

Page result with leading zero on the hour.

How can one suppress the leading zero in the hour?

1

There are 1 answers

0
CW Holeman II On BEST ANSWER

The timefmt uses the standard C function strftime(), so "%k" drops the leading zero:

<!--#config timefmt="%a, %e%b'%y %k:%M%P %Z" -->