I want to repeat the previous row based on a condition and change the timestamp in that new row. The new timestamp should be "a second" before the time in the next row