Hi,
Is there a way (or any component, internal or external) that can be used to get the timezone or the UTC offset of the device/user?
Cheers,
Fred.
Hi,
Is there a way (or any component, internal or external) that can be used to get the timezone or the UTC offset of the device/user?
Cheers,
Fred.
Hi @Fred,
Try this script with the Abitrary JavaScript component :
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;
How to download the Abitrary JavaScript component : PragmaFlow's Adalo Marketplace Reopened - YouTube
Thank you