[[+createdon:ago]] problems in templates
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.
Hi thanks for leaving that info. Do you mean the thread date? Like, "5 months ago"?
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
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