[15:30:50] openhabian@openhab:~$ timedatectl status
Local time: Mon 2020-01-20 15:31:00 GMT
Universal time: Mon 2020-01-20 15:31:00 UTC
RTC time: n/a
Time zone: Europe/London (GMT, +0000)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
Hi again,
I wanted to start with rules, but first of all my time is wrong. In putty using “timedatectl” gives me local time GMT whereas Berlin/GMT+1 would be correct. In paper UI/configuration/system/regional the correct time zone is set. I tried different zones, none is changing the time.
Try adding "-Duser.timezone=Europe/Berlin" to the options line beginning with EXTRA_JAVA_OPTS in /etc/default/openhab2
is what I found here but I have no clue in which file to put the lines.
There was something aboute start_runtime.sh. But I cannot locate this file either.
How can I change the local time?
Do I need the ntp binding?
UPDATE
[15:22:08] openhabian@openhab:~$ timedatectl set-timezone “Europe/Berlin”
==== AUTHENTICATING FOR org.freedesktop.timedate1.set-timezone ===
Authentication is required to set the system timezone.
Authenticating as: root
I solved the problem of time on the R.PL4 team
sudo timedatectl set-timezone Europe / Kiev
or
sudo dpkg-reconfigure tzdata
Interestingly, the time of the logs is still not correct. Does not account for UTC.
Paper UI set correctly.
Any ideas?