Timer doesn't update to correct time unless page is refreshed

As per the title, once a timer is started by a user it comes up on my table live. All works well except for one small detail. As seen in the screenshots below, once a timer is started for the first time and comes up on my table, it shows an incorrect value for the time. However, if the page is refreshed or loaded into, goes back to normal. Anyone know why and if its possible to make it first time correct when a timer starts? I hope the screenshots below are sufficient but if anymore are need please let me know. Cheers!

Wrong Time:

Page Refreshed with Correct Time:

Extras:
case 2
Case 3

Monitor’s time is updated every second with the current date/time and as soon as a user creates a timer (or Multi Downtime:last item’s Start Time) then the timer pops up on my table, as well as starts this timer.

The current date time is set when the page is loaded and doesn’t get updated. That’s why your time is showing incorrectly. There are plugins you can use to get an updated time. I think I used the plugin by Mintflow in the past

1 Like

I thought if I update the normal time every second like this, it would counter that issue, but I guess the timer on the right in the earlier screenshots cant recognise the pages timer cause it hasn’t loaded with the page, hence why the refresh?

image

Edit: Couldn’t find Mintflow on the plugins page unfortuantely.

That expression is just referencing the same static datetime from page load. You’d need to set a state with the datetime from pageload, then every 1 second do element’s custom state’s datetime + seconds 1. But I’d recommend just using a plugin

1 Like

You legend, your explanation worked and absolutely made sense, especially when you mention that its constantly referencing the static datetime every second rather than actually updating it with +1 seconds for that custom state. Appreciate the time you have put in to helping me. :hearts:

Edit: Image Proof

1 Like

Just a heads up to look at the WU usage of do every 1 second workflow. My guess is that the plugin is more efficient. It’s also a pain in the ass to debug with those do every x workflows

1 Like