This fixes issue 5797 and allows replace using timestamps
update to allow for replace using timestamps with a test. fixed issue 5797