Hi,
I'm trying to dynamically set the outTz from an input node by msg.outTz
, but seems like the moment node does not pick up the outTz, seems like it still uses the default timezone (probably from browser?)
Here are my code, no matter what timezone outTz has, it wont change
[
{
"id": "2c5752fea8ababd1",
"type": "inject",
"z": "b8212410faeba9d9",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "outTz",
"v": "UTC",
"vt": "str"
},
{
"p": "inTz",
"v": "Australia/Sydney",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": "",
"topic": "",
"payload": "1745919002581",
"payloadType": "str",
"x": 1120,
"y": 160,
"wires": [
[
"e6f5211b91ce70fa"
]
]
},
{
"id": "05dc9b47e23fa604",
"type": "debug",
"z": "b8212410faeba9d9",
"name": "debug 3",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 1620,
"y": 160,
"wires": []
},
{
"id": "e6f5211b91ce70fa",
"type": "moment",
"z": "b8212410faeba9d9",
"name": "",
"topic": "",
"input": "payload",
"inputType": "msg",
"inTz": "''",
"adjAmount": 0,
"adjType": "days",
"adjDir": "add",
"format": "",
"locale": "en-AU",
"output": "payload",
"outputType": "msg",
"outTz": "''",
"x": 1360,
"y": 160,
"wires": [
[
"05dc9b47e23fa604"
]
]
}
]
Thanks for helping!