core: fix on-the-fly is-all-day date conversion.