fix time intervals after date change