Fix the writing of the final date to the *.bin file.