# Current Date/Time Not Updating

**URL:** <https://forum.bubble.io/t/current-date-time-not-updating/150346>\
**Category:** Bugs\
**Created:** [May 8, 2021, 10:21pm UTC](https://forum.bubble.io/t/current-date-time-not-updating/150346 "2021-05-08T22:21:55Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tristan7577](https://avatars.discourse-cdn.com/v4/letter/t/bc79bd/32.png) [@Tristan7577](https://forum.bubble.io/u/Tristan7577)\
**Post date:** [May 8, 2021, 10:21pm UTC](https://forum.bubble.io/t/current-date-time-not-updating/150346/1 "2021-05-08T22:21:55Z")

</div>

Hello all,

I’m having a spot of bother about the below…Wanted to check if it’s my issue or possibly a bubble bug before I send them a bug report…

Essentially I’m seeing inconsistencies with the updating of the current date time all around my app.  
You can see that one of them seems to be updating properly.

 ![Screen Shot 2021-05-09 at 8.12.39 am](https://us1.discourse-cdn.com/bubble/original/3X/8/5/857b4130f5268d7b2a0bbd99daac48fdbf21eb8c.png)  
 ![Screen Shot 2021-05-09 at 8.18.12 am](https://us1.discourse-cdn.com/bubble/original/3X/3/0/302ba94235fbfd07651ceb58f7697fcedd37073b.png)  
 ![Screen Shot 2021-05-09 at 8.19.31 am](https://us1.discourse-cdn.com/bubble/original/3X/8/c/8c308f2a9d4e88ee5e28ca35150bc2b3b87c8b67.png)

---

<div class="post-metadata">

**Author:** ![Tristan7577](https://avatars.discourse-cdn.com/v4/letter/t/bc79bd/32.png) [@Tristan7577](https://forum.bubble.io/u/Tristan7577)\
**Post date:** [May 8, 2021, 10:23pm UTC](https://forum.bubble.io/t/current-date-time-not-updating/150346/2 "2021-05-08T22:23:57Z")

</div>

\*oops, sorry correction → none of them appear to be updating fully correcty. That last one is still a good hour behind as you can see.

---

<div class="post-metadata">

**Author:** ![manuelmaccou](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@manuelmaccou](https://forum.bubble.io/u/manuelmaccou)\
**Post date:** [May 8, 2021, 10:37pm UTC](https://forum.bubble.io/t/current-date-time-not-updating/150346/3 "2021-05-08T22:37:59Z")

</div>

Did you set up the Google API keys? If not you need to. That’s how Bubble updates current time/date.  
[https://manual.bubble.io/help-guides/working-with-data/working-with-location-data](https://manual.bubble.io/help-guides/working-with-data/working-with-location-data)

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [May 8, 2021, 10:45pm UTC](https://forum.bubble.io/t/current-date-time-not-updating/150346/4 "2021-05-08T22:45:43Z")

</div>

Two things to consider…

Firstly the current date time is set on pageload, and will be the time the page was loaded. It doesn’t automatically update in real time. If you want it to update continuously, there are several options, including running a workflow every second to update date data somewhere on the page, running some javascript to do the same, or using a plugin (Current Date/Time - which does update in real time).

Secondly, you also have to consider timezones, so check if your formatting the current/date time in the user’s timezone (if you’re not then you’ll have a different time displayed on the page).

---

<div class="post-metadata">

**Author:** ![Tristan7577](https://avatars.discourse-cdn.com/v4/letter/t/bc79bd/32.png) [@Tristan7577](https://forum.bubble.io/u/Tristan7577)\
**Post date:** [May 9, 2021, 12:07am UTC](https://forum.bubble.io/t/current-date-time-not-updating/150346/5 "2021-05-09T00:07:21Z")

</div>

Current date time is set to the time the page was loaded. The fact that this doesnt update continously would explain my issue - thanks for explaining that. but that last screenshot shows a different current date/time to the other two…the page was not refreshed between those screenshots being taken…wonder why that one updated and the other’s stayed at the time the page loaded. The conditionals I have must have a role to play there.

Would that workflow to update time continuously eat up lots of capacity? (I want this to scale) What would that workflow roughly look like?

Yes am using current user’s time zone. tick.

---

<div class="post-metadata">

**Author:** ![Tristan7577](https://avatars.discourse-cdn.com/v4/letter/t/bc79bd/32.png) [@Tristan7577](https://forum.bubble.io/u/Tristan7577)\
**Post date:** [May 9, 2021, 12:14am UTC](https://forum.bubble.io/t/current-date-time-not-updating/150346/6 "2021-05-09T00:14:05Z")

</div>

So I have to set every user’s location as a GEO address, then make everything set to that addresses timezone? Seems odd when this information should just come from the browser via ‘Current User’s Current Date/Time.’

---

<div class="post-metadata">

**Author:** ![Tristan7577](https://avatars.discourse-cdn.com/v4/letter/t/bc79bd/32.png) [@Tristan7577](https://forum.bubble.io/u/Tristan7577)\
**Post date:** [May 9, 2021, 2:05am UTC](https://forum.bubble.io/t/current-date-time-not-updating/150346/7 "2021-05-09T02:05:42Z")

</div>

solved by creating a custom state on index called current date/time which every 1 second is updated with current date/time. I am concorned about server usage however…I have a Do a search for which returns items relative to this constantly updating state…

---

<div class="post-metadata">

**Author:** ![ryaavr25](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ryaavr25/32/158251_2.png) [@ryaavr25](https://forum.bubble.io/u/ryaavr25)\
**Post date:** [May 9, 2021, 4:37am UTC](https://forum.bubble.io/t/current-date-time-not-updating/150346/8 "2021-05-09T04:37:32Z")

</div>

So clock the page then make a new condition called day/time and make the field a date. Then change the Text that says the date and time to “\<page name’s\> date /time” then format it how you want. After that create a new workflow:

Do everyone 1 second: set state  
element- page  
state- date/time  
value- current date/time

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [May 22, 2021, 10:22pm UTC](https://forum.bubble.io/t/current-date-time-not-updating/150346/9 "2021-05-22T22:22:49Z")

</div>

Closed on May 22, 2021, 10:22pm UTC

This topic was automatically closed after 14 days. New replies are no longer allowed.
