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

This reverts commit b3aefebc854c02fceaf7d694e09295d6c5f781c6.