Get time by pressing button issue

Hi

I get the time (I try) by pressing a button that I put in a label first the time is shifted by about 1 minute (not always) more when I press a few moments later it is always the same time as I get (not always)
I’m losing my Latin

1 Like

I have no idea! I can’t see your blocks.

1 Like

hi
here are the blocks

1 Like

Have you tried using the current time from the device block instead of the Time_input asset?
image

2 Likes

If you use the Time Picker component then you will always get the time when you start your app. It will not change unless you close the app and open it again.

To get the current time you need to follow @martint advice and use the components in the Device drawer.

2 Likes

The device time block will only show a single digit (2:3), if you need to show a preceding 0 for the single digit minutes (2:03) you can use this


And the same again for hours if required.

1 Like

Or this

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.