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

relative timestamps in plugin?

high1976

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

high1976

Active member
#4
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.