# Get time by pressing button issue

**URL:** https://community.thunkable.com/t/get-time-by-pressing-button-issue/1654972
**Category:** Questions about Thunkable X
**Created:** [December 15, 2021, 4:47am UTC](https://community.thunkable.com/t/get-time-by-pressing-button-issue/1654972 "2021-12-15T04:47:06Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![bibbi](https://avatars.discourse-cdn.com/v4/letter/b/db5fbb/32.png) [@bibbi](https://community.thunkable.com/u/bibbi)
#### Post date: [December 15, 2021, 4:47am UTC](https://community.thunkable.com/t/get-time-by-pressing-button-issue/1654972/1 "2021-12-15T04:47:06Z")

</div>

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

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [December 15, 2021, 5:08am UTC](https://community.thunkable.com/t/get-time-by-pressing-button-issue/1654972/2 "2021-12-15T05:08:49Z")

</div>

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

---

<div class="post-metadata">

### Author: ![bibbi](https://avatars.discourse-cdn.com/v4/letter/b/db5fbb/32.png) [@bibbi](https://community.thunkable.com/u/bibbi)
#### Post date: [December 15, 2021, 8:27am UTC](https://community.thunkable.com/t/get-time-by-pressing-button-issue/1654972/3 "2021-12-15T08:27:40Z")

</div>

hi  
here are the blocks

 ![Capture d’écran 2021-12-15 à 09.23.49](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/0/90314457f2af36491ecf13d3fa300359f0116c89.png)

---

<div class="post-metadata">

### Author: ![martint](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/martint/32/96689_2.png) [@martint](https://community.thunkable.com/u/martint)
#### Post date: [December 15, 2021, 8:46am UTC](https://community.thunkable.com/t/get-time-by-pressing-button-issue/1654972/4 "2021-12-15T08:46:58Z")

</div>

Have you tried using the current time from the device block instead of the Time\_input asset?  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/3/f394004c3658804ffc396e6401924d1e46a61f3b.png)

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [December 15, 2021, 10:03am UTC](https://community.thunkable.com/t/get-time-by-pressing-button-issue/1654972/5 "2021-12-15T10:03:25Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![martint](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/martint/32/96689_2.png) [@martint](https://community.thunkable.com/u/martint)
#### Post date: [December 15, 2021, 11:55am UTC](https://community.thunkable.com/t/get-time-by-pressing-button-issue/1654972/6 "2021-12-15T11:55:08Z")

</div>

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

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/f/bf83ac63910f639bd54270667ee1b149e8328a83.png)  
And the same again for hours if required.

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [December 15, 2021, 12:26pm UTC](https://community.thunkable.com/t/get-time-by-pressing-button-issue/1654972/7 "2021-12-15T12:26:58Z")

</div>

> [@martint](#):
>
> you can use this

Or this

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/e/2e4d23a38aa0c0ffa6317144ed2d8341f652f768.png)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)
#### Post date: [March 15, 2022, 12:27pm UTC](https://community.thunkable.com/t/get-time-by-pressing-button-issue/1654972/8 "2022-03-15T12:27:14Z")

</div>

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