change time range condition in getHist