Fixed tentative task output formatting

It was originally showing duplicate date ID for date ranges. Now it has
been fixed where one date range only gets one date ID.