Fix time-range issue and 1day shift issue in week mode