swapping time to limits when dates are changed