Fix repository location bug, handle hour 0 rollsback to 23 of previous day