fixed issue with export records not including the end date

Signed-off-by: Chris Jones <chris@jonezy.org>
fixed off by 1 date issue

Signed-off-by: Chris Jones <chris@jonezy.org>