You are viewing a single comment's thread from:

RE: Building a Simple Digital Clock with JavaScript

Yeah you're right!
In this case, I programmed it to work with the 24 hour format but thanks a lot for your suggestion, I never even thought of it.

That means this should be added somewhere in the code:

if( hrs > 12 ) { hrs - 12}