Looking at what I see in the screen shot - function node:
let now = Date();
msg.time = now.tolocalTimeString();
msg.time = now;
return msg;
Sorry, but where is new in this?
You did not specify new so.....
I am fretting just now as I have seen ANOTHER problem with some code I posted in an effort to help some one.
It will work, but there is a problem.
(Argh)
This ^&^& OCD really REALLY sucks.
I am now trying to get the problem I see fixed.
All this was a simple thing to make it a BASIC time printout showing time stamps.
Not really crucial to things. Just to make it nicer to read.
When called as a constructor, returns a new Date object
let now = Date()
When called as a function, returns a string representation of the current date and time. All arguments are ignored. The result is the same as executing new Date().toString()
But my spell corrector is pathetic.
It puts the wrong words in sometimes so really I should disable it.
(If only I could - it is very bad muscle memory on how to spell things)