Cool! Maybe time is formatted differently where you live, but 20:20:02 would be called 08:20:02 PM here so it would require subtracting 12 from the hours if it's greater than 12.
You are viewing a single comment's thread from:
Cool! Maybe time is formatted differently where you live, but 20:20:02 would be called 08:20:02 PM here so it would require subtracting 12 from the hours if it's greater than 12.
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}