Added spec to test the format_time_as_date helper