fix date interval formatting