time changes

if only to/from is selected the other is set to min/max