fixes day comparison

I think this should also be sync'd downstream to hydro-devel.