Clock Timer not converting to minutes correctly

If the rotary encoder value changes I want the value to change on a clock timer. So every time the the encoder goes up by 1 or down by 1 the clock does the same. So when rotary encoder value goes from 119 to 120 the clock value goes 01:59 to 02:00. And also if the rotary encoder value goes from from 120 to 119 the clock value goes 2:00 to 1:59. The latter is the part that is not working for me.

I am using the rotary encoder value to convert it time. So every 60 increments of the rotary encoder is 1:00 minute. The clock time is just for a display value. The actual rotary encoder value is what I will be using to control the time.