bug fix in closeDay (in the case of sunday midnight)