Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-06-05 20:39:09

totoff
Member
From: Cologne, Germany
Registered: 2011-04-04
Posts: 145
Website

[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

#2 2012-06-05 20:48:58

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

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" />

My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#3 2012-06-05 20:51:13

totoff
Member
From: Cologne, Germany
Registered: 2011-04-04
Posts: 145
Website

Re: [SOLVED] <txp:posted /> outputs wrong time

hi matt,

solved, thank you very much!

Offline

Board footer

Powered by FluxBB