Date interval with milliseconds acurracy

I am currently trying to do an array with a lot of button pressed time’s timestamps, but i always get an issue when it works.


image
I cant deploy when the project have an issue, so how to solve it?

Where are these issues from? Click on these issues so it would redirect you to where it is located.

As what the issues are indicating, you just need to change the type for issue 1 and add a value for issue 2

Issue 1:


Issue 2:

The data source of the repeating group is a text, splitted by " , "; like: 34,56,194,540,102.
If i select any of these options( except “is in” and “is not in” ) the issues are gone, but i want to return a value of not days, hours, minutes or seconds, i need to return Milliseconds.

down here( issue 2 date interval options )

The array is a custom state.
If bubble had an option called “formatted as milliseconds” or clear selection were not an issue, this post would be solved.

Without selecting any formatting operator, the expression returns the interval in milliseconds, but i always get an issue.

You can do This page's end date:extract UNIX timestamp (ms) - This Page's start date:extract UNIX timestamp (ms) :blush:

I solved this.
I turned each page’s date into Number type.
image
Into workflows, when Button Legal is pressed, the workflows do:

Set state start date → Current date/time formatted as mmssLL:converted to number/10.

When the Button Legal isn’t pressed, the workflows do:

Set state end date → Current date/time formatted as mmssLL:converted to number/10.

The repeating group array, is not a list. It is a data pack splitted by (,). When button finishes the event “Button Legal isn’t pressed”, its last action append to the “array” the following things:
(“,” and (End date - Start date)). Example of return: ,549.
For some reason, it always start with something like 418050( i will ignore this in the final version using conditions ).

At repeating group, the data type is text, and the Data Source is (“array”'s value split by (,)).

I did the array like that because i was thinking about saving work units. Instead of saving a lot of items on the database in a specific time, just save a data pack.

Thank you all for helping me. I am a 12 year-old boy from Brazil ( english is not my first language ), building a big SPA PWA application for iOS and Android. :+1:

2 Likes

i saw this after doing a 2hour hard work doing myself system😨

1 Like

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