Show User's Time Zone With JS!

Hello Again Community :wave:

Here’s how you can show user’s timezone in real time! I did this with JS!

Here’s a video : Loom | Free Screen & Video Recording Software

Here’s the Script :

var first = (new Date().toTimeString().slice(9));
var second = (Intl.DateTimeFormat().resolvedOptions().timeZone);
var third = (new Date().getTimezoneOffset() /-60);
var full = first + "," + '\xa0' + second + "," + '\xa0' + third;
return full;

Instructions to download components from Pragmaflow website : PragmaFlow's Adalo Marketplace Reopened - YouTube

Pragmaflow website : PragmaFlow Adalo Toolkit

The component you need :


In here also I forgot to show the text component settings. In here also you can add the input that save the result in the text component. In my case it’s Input 4!

Hope this helps!

Thank you and a Great Weekend!

1 Like