Fixes the daylight saving time duplicated date problem