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

Relative Timestamps in Addon

#1
Hello!

I have an addon and want to use rlative timestamps in it.
I postet them like this:
Code:
<xen:datetime time="$date" />
But the rel. timestamps don't work. Is there a special JS-File I have to include?

Thanks for help!
Harald
 

Brogan

XenForo moderator
Staff member
#2
That should be all you have to do.
How is $date stored in the database? It should be a UNIX timestamp.