strftime for displaying end time and erb view files