# How can I make a check for whether or not it is 12:00 AM function continously even after I close the app?

**URL:** https://community.thunkable.com/t/how-can-i-make-a-check-for-whether-or-not-it-is-12-00-am-function-continously-even-after-i-close-the-app/2139957
**Category:** Questions about Thunkable X
**Created:** [November 20, 2022, 1:11pm UTC](https://community.thunkable.com/t/how-can-i-make-a-check-for-whether-or-not-it-is-12-00-am-function-continously-even-after-i-close-the-app/2139957 "2022-11-20T13:11:56Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![s2100299k](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@s2100299k](https://community.thunkable.com/u/s2100299k)
#### Post date: [November 20, 2022, 1:11pm UTC](https://community.thunkable.com/t/how-can-i-make-a-check-for-whether-or-not-it-is-12-00-am-function-continously-even-after-i-close-the-app/2139957/1 "2022-11-20T13:11:56Z")

</div>

I want to make a gacha system for my game. At 12:00 AM every day, a random item will have a higher rate of being pulled, but the checking for whether or not it is 12:00 AM doesn’t work when the app is closed. Is there a way I can make it so that it works or is there a workaround to this? Thanks.

---

<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 20, 2022, 4:19pm UTC](https://community.thunkable.com/t/how-can-i-make-a-check-for-whether-or-not-it-is-12-00-am-function-continously-even-after-i-close-the-app/2139957/2 "2022-11-20T16:19:51Z")

</div>

Why does it matter what time this happens? Why not just randomize the reward when the app is opened?

---

<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: [February 18, 2023, 4:20pm UTC](https://community.thunkable.com/t/how-can-i-make-a-check-for-whether-or-not-it-is-12-00-am-function-continously-even-after-i-close-the-app/2139957/3 "2023-02-18T16:20:11Z")

</div>

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