Hi Forum,
I have a function node with the following code which runs fine and does what I want. msg.date contains a timestamp.
let age = (new Date() - new Date(msg.date)) / (1000 * 60);
but since the new Node-RED update I receive the following error-messages
"new Date()" is marked with this error:
The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.(2362)
"new Date(msg.date)" is marked with this one:
The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.(2363)
Any advice is appreciated on why this code is bad. Thanks in advance!