fix bug: time does not set to 0 in the other day.