Quote Originally Posted by Jerson View Post
You seem to be making a basic mistake. The value of minutes should run between 00 and 59 and not 01 to 60 as you have implemented. That is why you seem to have the minutes starting at 1 instead of going to 0.
Now it makes more sense. Change

Code:
if mm = 60 then mm = 1
to

Code:
if mm = 60 then mm = 0
Always the little stuff. Thanks.