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

Relative Timestamps in Addon

Discussion in 'XenForo Development Discussions' started by Bugfix, Oct 9, 2014.

  1. Bugfix

    Bugfix Member


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

    Thanks for help!
  2. Brogan

    Brogan XenForo Moderator Staff Member

    That should be all you have to do.
    How is $date stored in the database? It should be a UNIX timestamp.
  3. Bugfix

    Bugfix Member

    it is a timestamp (stored in an int-field)

Share This Page