LutzTH hat geschrieben: 3. Feb 2026 21:54
Ist aber echt für mich nicht nachvollziehbar.
Es gibt im Image, das man mit dem "Pi-Imager/Etcher" auf eine SD-Karte ziehen kann, eine Datei die heisst
openhabian.conf
und die kann man vor dem ersten Einlegen in den Pi noch anpassen. Da kann man auch schon Einstellungen zu Sprache und Zeitzone machen. oder aber auch zum Namen des Hosts, des Users, des Passwortes oer, oder.....
# Language and timezone. See Debian documentation for valid values.
timezone=Europe/Berlin
locales="de_DE.UTF-8 de_DE.UTF-8"
system_default_locale=de_DE.UTF-8
Ich habe das Image vor dem ersten booten nicht konfiguriert. Das war mir auch bisher nicht bekannt. Ich bin davon ausgegangen das alle Einstellungen über die normalen Boardmittel bei obenhab, wie obenhabian-config eingestellt werden können. Es ist nicht nachvollziehbar das die Zeit unter SSH korrekt ist und openhab dann eine andere Default time verwendet.
LutzTH hat geschrieben: Gestern 05:59
Es ist nicht nachvollziehbar das die Zeit unter SSH korrekt ist und openhab dann eine andere Default time verwendet.
...ist halt international, deshalb London.
Hier noch zwei Befehle, die dir vielleicht Übersicht verschaffen können.
hab4@raspi58:~ $ timedatectl status
Local time: Mi 2026-02-04 11:46:38 CET
Universal time: Mi 2026-02-04 10:46:38 UTC
RTC time: Mi 2026-02-04 10:46:38
Time zone: Europe/Berlin (CET, +0100)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
---------------------------------------------------------------------------
hab4@raspi58:~ $ timedatectl help
timedatectl [OPTIONS...] COMMAND ...
Query or change system time and date settings.
Commands:
status Show current time settings
show Show properties of systemd-timedated
set-time TIME Set system time
set-timezone ZONE Set system time zone
list-timezones Show known time zones
set-local-rtc BOOL Control whether RTC is in local time
set-ntp BOOL Enable or disable network time synchronization
systemd-timesyncd Commands:
timesync-status Show status of systemd-timesyncd
show-timesync Show properties of systemd-timesyncd
ntp-servers INTERFACE SERVER…
Set the interface specific NTP servers
revert INTERFACE Revert the interface specific NTP servers
Options:
-h --help Show this help message
--version Show package version
--no-pager Do not pipe output into a pager
--no-ask-password Do not prompt for password
-H --host=[USER@]HOST Operate on remote host
-M --machine=CONTAINER Operate on local container
--adjust-system-clock Adjust system clock when changing local RTC mode
--monitor Monitor status of systemd-timesyncd
-p --property=NAME Show only properties by this name
-a --all Show all properties, including empty ones
--value When showing properties, only print the value
-P NAME Equivalent to --value --property=NAME
See the timedatectl(1) man page for details.
hab4@raspi58:~ $
Mit dem Befehl kann wohl auch die Zeitzone gesetzt werden.
Ansonsten hat Udo hierzu schon Einiges an Tipps und Kniffe geschrieben.
Und wenn du weiterhin Probleme hast, wird dir hier sicher gerne geholfen.
timedatectl status
Local time: Wed 2026-02-04 21:27:12 CET
Universal time: Wed 2026-02-04 20:27:12 UTC
RTC time: n/a
Time zone: Europe/Berlin (CET, +0100)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
Und mit welchen command kann ich die Universal time auf CET +1 setzen. Da werde ich wohl doch das von UDO durchführen.