fix oddity with parsing the day