Agent for information

Detect Mobile


  var isMobile = /iPhone|iPad|iPod|Android/i.test(navigator.userAgent);

Hola Thinh,

Reading and studying these days JavaScript better, I could notice that Date-Time variables are special when they are exchanged between applications.

JSON doesn’t support Date-Time objects/variables so these must be converted to string in order to be sent.

Try this:

  • Convert your Date-Time value into string (returned by Manu’s UTC time code)
  • Send this new value to Webhook (via Integromat?) and check if the value is received correctly

If everything is fine in Integromat, you will have to convert again your new Date from String into Date in Integromat.

I hope it helps

3 Likes

new version https://Agent.manun2.repl.co

Can you test for Mac

image

This is a code that I found on the net !!

6 Likes

Sweet!

2 Likes

Thanks @gvalero, I will deffo try this when I have time.

I used Manu’s YC to derive the user’s timezone offset. However it does not work in my timezone solely because we use dd/mm/yyyy instead of mm/dd/yyyy so I had to find an alternative.

Ah!!

I think your format dd/mm/yyyy brings problems as well.

Take a look at this:

Te cuidas!

1 Like

Solution: Move to US? :rofl:

1 Like

Uh
In the YC DateUTC it reverts to ISO format, so it’s a common format “YYYY-MM-DDTHH: mm: ss.sssZ”
I think Glide reformatted for display and internal management at regional setting.
After that it is easy to convert for the webhook.

1 Like

Or you modify the script to make a return value in string so in ISO format

Hi,

Another code that can be useful if you want to know the user language on your APP… Just use the Hell YC template for it.

image

const leng={es: "Spanish", en: "English", fr: "French", de: "German", it: "Italian"};

const ID= window.navigator.language.slice(0, 2);
return  leng[ID]

More codes here: https://tools.ietf.org/rfc/bcp/bcp47.txt

Saludos

6 Likes

That’s interesting @Manu.n , can you get clicked X:Y position of the pointer or finger? In %

Hello @Uzo
Without even thinking too much or doing tests, I think it’s not possible, because your request is for the front-end. and the YC has no connection with this one

2 Likes

tnx… I’m trying to build a slider component

good luck :grinning: :+1:

1 Like

You should be able to use YC columns in an action. Do you have a simple example app where that fails?

Yes
Here is a little video.
The principle is to modify the order of a list.
So with YC I determine what the next number is.
The action on the list is to copy the new number to the order column. But it doesn’t work.

Can you please try reproducing it in a very simple app? Ideally just one tab with one button. And I need a support link.

The only time it works, and, if you add a text component to the page with the column or a column related to the YC. The action works.
This is my observation

1 Like

image

Works well for Mac.

1 Like

@Mark
I made this little app for you.
The idea is to make in an Action a SetColumn of a value produced by the YC.

Here is the support link
https://go.glideapps.com/support/13148310-761f-4187-b5d3-6b8268c056a1