Revert "Correct crash when opening file with only one date"

This reverts commit 3ff9154bd481b49105e6d71b59d1e88ac5554d8f.