In the "Script" section, under "Type", choose "Node.js"
Dependencies:
Empty
Script:
async function exeFunc({ timeZone }) {
return new Date().toLocaleString("en-US", { timeZone: timeZone })
}
Properties:
{
"timeZone": {
"type": "string",
"description": "Use the given timezone to format a new time e.g., 'Asia/Tokyo'. The value cannot be UTC."
}
}
Press "Next"