Complicated issue with string.gsub()

Hmm, apparently it only says “1 hour” if I try to ban them for ex. 3655 seconds.
This is very strange and I’m positive there’s something wrong in how I’m calculating it, but don’t know what.

At this point it feels like the zeros are necessary for my code to work.

Edit - I don’t really mind anymore, this has shown to be an impossible task so I just invented my old system where it displays zeros as well.


Still open for suggestions though, if anyone can figure out how to remove the zeros without glitching out.