Replace calls to relative_time and format_date.

This is a port of liqd/adhocracy#44.