Group date bug

In writeGroupData, the entryDate is used as the exitDate.