'day' header should be time-date not the other way around
refactor format_response, stop generating extra spaces