Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[SOLVED] <txp:posted /> outputs wrong time
hello forum,
i’m sure this is an easy matter for PHP pros, but i’m stuck. on a page i use <txp:posted />
to output dates that are in the future:
<txp:posted format="%d.%m.%Y %H:%m" />
unfortunately this outputs a wrong time.
for example: i’ve set an article to be posted on 01.09.2012, 19:00 (german date and time format).
but my output is 01.09.2012, 19:09
this happens with each and every article to which i’ve set a posting time. always some minutes are added.
your help is much appreciated, thanks.
christoph
Last edited by totoff (2012-06-05 20:52:00)
Offline
Re: [SOLVED] <txp:posted /> outputs wrong time
%M
is the “Two digit representation of the minute” so you should be using:
<txp:posted format="%d.%m.%Y %H:%M" />
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
Re: [SOLVED] <txp:posted /> outputs wrong time
hi matt,
solved, thank you very much!
Offline