relative timestamps in plugin?

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?
Code:
$item['date'] = XenForo_Locale::dateTime($item['date'], 'relative');
 
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.
 
Top Bottom