Problems with Time in Node-Red (v1.2.6) Docker
Hello,
I have installed Node-Red in a Docker on the PLCnext controller (firmware 2020.6). Via OPC UA I want to create a line graph in Node-Red that is to be generated by a real variable. Unfortunately, the graph is only displayed as a line and I have seen that the time in Node-Red is not correct. I have already tried to transfer the current system time to the controller in PLCnext Engineer, but this does not work - the time in Node-Red remains the same. Is there another way to transfer the current time to the controller so that the time in Note-Red Docker is also changed?
When I installed Node-Red on my Windows PC I tried it again with the same code and it worked. Has anyone had a similar problem and can help me?
Best regards
roboo7795
Comments
Hi robo7795,
you can try to open a console in your docker container: docker exec -it YOURCONTAINERNAME bash. From there you can use the standard linux command to adjust the time e.g.
date -s "15 DEC 2020 11:14:00".
Please use CRTL + P + Q to close the console.
Hello,
Thank you for your answer.
Sorry, I want to change the time of the Container.
Best Regards