• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.



Well-known member
I'm trying to display a date and time in an absolute format (not relative) using a UNIX time value. For what reason might this expression not work in a template?

<xen:date time="{$conversation.message_date}" />
The {$conversation.message_date} value is a UNIX time stamp.

I expected this to work, but I get an error upon saving the template.

Chris D

XenForo developer
Staff member
There are a few variations on xen syntax for date/time.

This should work:
{xen:datetime $conversation.message_date, absolute}