Skip to content

Latest commit

 

History

History
43 lines (27 loc) · 1.83 KB

06_Date_and_Timezone.md

File metadata and controls

43 lines (27 loc) · 1.83 KB

Quick Reference Guide

Configure the date and timezone on your PLCnext device

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:

  1. Connect to your EPC via SSH ("Putty").

  2. 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

  3. 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.

  4. 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
    
  5. Now, open the file "/etc/localtime" with following command:

     nano /etc/timezone
    
  6. An empty file will open. In here, enter the same place you choose before.
    In my case, I entered

     Europe/Berlin 
    

    into the file and saved and closed the file (Cntr + X)


ChangeTimezone

Now that the timezone is set correct, write the current time into the PLCnext Controller

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.

ChangeTime

Or else, use another option as described here