Discuss icon indicating copy to clipboard operation
Discuss copied to clipboard

[[+createdon:ago]] problems in templates

Open squarou opened this issue 10 years ago • 3 comments

I had problem with [[+createdon:ago]] wich was reffering to 45 years old.

It seems that using [[+createdon_raw:date=%d-%m-%Y:ago]] works for me in chunks/post/disthreadpost.chunk.tpl

Just wanted to share here.

squarou avatar Feb 02 '15 08:02 squarou

Hi thanks for leaving that info. Do you mean the thread date? Like, "5 months ago"?

Nuan8 avatar Feb 02 '15 16:02 Nuan8

change discuss.date_format in system-settings to "%Y-%m-%d %H:%M:%S" might help you out. I have a Dutch localized setting, when the date_format changed to the above the :ago addition gives the right value

mintnl avatar Nov 26 '15 12:11 mintnl

Ok Thank you i'll try that.

Le 26 novembre 2015 13:00:32 CET, mintnl [email protected] a écrit :

change discuss.date_format in system-settings to "%Y-%m-%d %H:%M:%S" might help you out. I have a Dutch localized setting, when the date_format changed to the above the :ago addition gives the right value


Reply to this email directly or view it on GitHub: https://github.com/modxcms/Discuss/issues/34#issuecomment-159895248

Squarou

Envoyé depuis mon mobile

squarou avatar Nov 26 '15 12:11 squarou