fix the day of week not being updated when the day changes