Fix calculation of the current day