Forums / General / How to display time on 24h ?

How to display time on 24h ?

Author Message

Sébastien Antoniotti

Thursday 23 November 2006 12:02:22 am

Hi,

I want to display the publication datetime of an article, and I acutally use this :

{$node.object.published|datetime('custom',"%d %F %Y %h:%i:%s")}

This code display me "10 Novembre 2006 02:37:57" but I want to display "10 Novembre 2006 14:37:57"

Did someone has an solution ?
Thanks.

eZ Publish Freelance
web : http://www.webaxis.fr

Damien Pobel

Thursday 23 November 2006 12:34:03 am

You can use %H
see http://ez.no/doc/ez_publish/technical_manual/3_8/reference/template_operators/formatting_and_internationalization/datetime

Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish

Sébastien Antoniotti

Thursday 23 November 2006 12:39:05 am

(j'ai honte :D)

Thank you !!

eZ Publish Freelance
web : http://www.webaxis.fr