bugfixing for dates at the same day