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

relative timestamps in plugin?

Discussion in 'XenForo Development Discussions' started by high1976, Apr 11, 2012.

  1. high1976

    high1976 Active Member

    trying to get relative timestamps in a plugin but can't get the output updated by JS, is there any special trigger needed?
    $item['date'] = XenForo_Locale::dateTime($item['date'], 'relative'); 
  2. high1976

    high1976 Active Member

    *push* ;)
  3. Jeremy P

    Jeremy P Well-Known Member

    Ever figure this out? Just use the special xen:date template tag.
  4. high1976

    high1976 Active Member

    oh thats long ago...no, never solved it and stayed with absolute dates ('absolute'). Not sure what the problem was with xen:date, guess it wasn't working outside the template-system.

Share This Page