The default timezone on a PLCnext device is set to UTC.
While you normally don't face any issue with a "wrong" timezone if using the EPC on its own, this might be a problem when using Grafana or other apps that might come with their own timezone setting.
To change the timezone, please follow this guide:
-
Connect to your EPC via SSH ("Putty").
-
After logging in as admin, log in as "root" user.
If you haven't created a root user yet, please read the chapter "Using the root user" here -
Inside the folder /usr/share/zoneinfo you can see all available timezones.
Since my EPC is located in Germany, I will choose "Europe" --> "Berlin" as my timezone. -
Create the neccecary user right via following command (change the timezone ("/Europe/Berlin") to your required place):
ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime
-
Now, open the file "/etc/localtime" with following command:
nano /etc/timezone
-
An empty file will open. In here, enter the same place you choose before.
In my case, I enteredEurope/Berlin
into the file and saved and closed the file (Cntr + X)
This can be done by several ways. The easiest might be using PLCnext Engineer.
Connect to your device via PLCnext Engineer and click the "Write time to PLC" button.
Or else, use another option as described here