Does XF have options to format a timestamp like https://momentjs.com/ ? Or is it possible to create a parsed xf:time xf:date tag just with a timestamp?
Whoops, I messed up above.I have a UNIX timestamp, 1527562156, and I want to either format it to e.g. 29.05.2018 04:49 or place it into a <xf:date> tag (not xf:time) which would render to a HTML <time> tag with pre-set data-values. <xf:date time="{$xf.time}" /> =>
I know the first one can be done via hacky JS, so I'm looking for a clean solution. And, yea, unless there's a possibility to render templates from JS, template magic won't work for me