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

<xen:date>

Valhalla

Well-known member
#1
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?

Code:
<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
#2
There are a few variations on xen syntax for date/time.

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