CW Holeman II
CW Holeman II

Reputation: 4971

SSI timefmt suppress leading zero in the hour

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?

Upvotes: 0

Views: 44

Answers (1)

CW Holeman II
CW Holeman II

Reputation: 4971

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

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

Upvotes: 0

Related Questions