Hacky fix to handle dates without times.