I have a problem with clock 01:00, error 010:00, in PM 013:00 help

Hello, I have a problem with the app inventor's clock. Before, I had that problem with the minute. I chose 1:00 p.m. and the display showed 13:0. I put a zero in front of it and it no longer generates that error with it. minute now I have it with the time, when I choose AM, for example midnight 0:00, 1:00, I put a zero in front but the error is now like this, when it is PM, 013:00, 023:00, yes it is fine in the first hours but after 09:00 it gets like this, 010:00, if someone could help me I would greatly appreciate it.

1 Like

Thank you very much for responding, the problem I have is with the time selector, sorry if it was understood differently, before I had that problem with the minutes but I added a zero; 13:1, 15:9, 15:10, with the added zero the minute is correct, 13:00, 13:09, 13:10. Now I have that problem with the hour of the time selector, I added the zero as in the minute but the result in the list viewer is like this 01:00, 09:00, 010:00. 023:00, that is my problem, I appreciate your collaboration, I saw your image but it uses relog and I would not know how to implement it in my project, thanks in advance

Captura de pantalla 2024-08-20 122026

image

You will find the Clock in the Sensors drawer in the Designer.

It's worth your time to learn it if you are going to work with time.

See here:

https://puravidaapps.com/snippets.php#2leadingZeros

also