Fix daterange on history page