Why does the getSeconds() function return a different value?

Hi,

I'm just starting with "Node Red" and "JS" and I have a probably simple beginner's question.
I intend to log an average value exactly every full minute in InfluxDB.

The payload is the seconds on the node-red server, the time in the debug is browser time, They both increment by 1.

Ah, okay. Thank you.
I hope the timestamps of the individual ioBroker modules are then synchronized? E.g. between Node Red and Influx?

If node red and influx are on the same machine then they will use the same clock.

The fact that your server and PC are 15 seconds apart probably means that one of them has not got time synchronisation setup correctly. Machines setup to auto-sync from the internet should be less that a second apart.

What OS is the server running on? Linux and Windows are not a real time OS and occasionally processes will lock out others for a short time, so you cannot rely on sub-second response, or even within a few seconds occasionally. Why is it so critical that it is exactly one minute?