# Issue with currentTime

**URL:** <https://community.thunkable.com/t/issue-with-currenttime/3365990>\
**Category:** Issues / Bugs\
**Tags:** beginner\
**Created:** [November 24, 2024, 3:44pm UTC](https://community.thunkable.com/t/issue-with-currenttime/3365990 "2024-11-24T15:44:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ocorbo](https://avatars.discourse-cdn.com/v4/letter/o/ad7895/32.png) [@ocorbo](https://community.thunkable.com/u/ocorbo)\
**Post date:** [November 24, 2024, 3:44pm UTC](https://community.thunkable.com/t/issue-with-currenttime/3365990/1 "2024-11-24T15:44:56Z")

</div>

so im using current time, day, year variables that are built-in in thunkable. I send it via BLE to a microcontroller to initialize the RTC. Before actually sending the ‘currentTime string’ you have to login the app and pair the device with the app, THEN when the pairing is done a screen open and i send the string. The string itself is attached in the blockcode of the third screen so you have to pass 3 steps before receiving the ‘currentTime string’. It feels like the currentTime is the one from when the app starts, not the actual time when you open the third screen so there a little delay with the device and the realtime.

How can i get the currentTime ?

---

<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:** [November 24, 2024, 5:18pm UTC](https://community.thunkable.com/t/issue-with-currenttime/3365990/2 "2024-11-24T17:18:06Z")

</div>

What blocks are you using on the third screen? Post a screenshot. What happens if you separately (not related to BLE) assign the current time block to a label when the third screen opens? Does that work as expected?

---

<div class="post-metadata">

**Author:** ![ocorbo](https://avatars.discourse-cdn.com/v4/letter/o/ad7895/32.png) [@ocorbo](https://community.thunkable.com/u/ocorbo)\
**Post date:** [November 24, 2024, 5:25pm UTC](https://community.thunkable.com/t/issue-with-currenttime/3365990/3 "2024-11-24T17:25:18Z")

</div>

![Capture d’écran, le 2024-11-24 à 12.23.31](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/f/4fc54dd6054f591fa5245765beab1da86ba1504c.png)

yes it works great but theres a little delay between the time from thunkable and the real time on my computer si i supposed it was related with how thunkable saves the currentTime

---

<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:** [November 24, 2024, 5:46pm UTC](https://community.thunkable.com/t/issue-with-currenttime/3365990/4 "2024-11-24T17:46:05Z")

</div>

> [@ocorbo](#):
>
> yes it works great but theres a little delay between the thime from thunkable and the real time on my computer

How are you determining that the time is off? Is your computer synced to a time server? Is it different if you do as I suggested above and just display the current time block immediately when the screen opens?

---

<div class="post-metadata">

**Author:** ![ocorbo](https://avatars.discourse-cdn.com/v4/letter/o/ad7895/32.png) [@ocorbo](https://community.thunkable.com/u/ocorbo)\
**Post date:** [November 24, 2024, 6:16pm UTC](https://community.thunkable.com/t/issue-with-currenttime/3365990/5 "2024-11-24T18:16:34Z")

</div>

yeah i did for debug purposes and i found theres a couple seconds delay .
