fixes #41, end date format problem