Add template helper to format time
Update detail template to use time formatting helper