Code: Alles auswählen
ntpq -p
Code: Alles auswählen
ntpq -p
So lange auf dem Rechner nur Linux läuft, handhabe ich das auch so.
Doch, klappt schon
Ob das jetzt wirklich skapi weiterhilft, keine Ahnung.--adjust-system-clock
If set-local-rtc is invoked and this option is passed, the system clock is synchronized
from the RTC again, taking the new setting into account. Otherwise, the RTC is
synchronized from the system clock.
Wie ist das bei dir/euch im "Normalbetrieb"? RTC wird bei mir (und wahrscheinlich auch bei skapi) nicht automatisch von systemd-timesyncd korrigiert:dufty2 hat geschrieben:29.11.2017 16:16:59Bei mir klappt systemd-timesyncd recht gut, wenn jene disable (und nicht nur stoppe), um dann die Zeit mittels
# timedatectl set-time 11:06
völlig zu verstellen und dann wieder systemd-timesyncd aktiviere,
ist innerhalb einer Minute auch die hwclock sprich die "RTC time" automatisch wieder richtig gestellt.
Code: Alles auswählen
root@laptop:~# timedatectl
Local time: Mi 2017-11-29 10:13:51 CET
Universal time: Mi 2017-11-29 09:13:51 UTC
RTC time: Mi 2017-11-29 11:13:56
Time zone: Europe/Berlin (CET, +0100)
Network time on: yes
NTP synchronized: no
RTC in local TZ: yes
MSfree hat geschrieben:29.11.2017 14:00:08[Die Lösung ist hier, Linux beizubringen, daß die HWClock in Lokalzeit läuft, dann klappt es auch im Zusammenspiel mit Windows. Eine entsprechende Option kann man in die Datei /etc/default/hwclock eintragen.
Wenn ich Deine Ausgabe richtig interpretiere, dann hast Du Deine hardware clock auf Sommerzeit eingestellt.Jana66 hat geschrieben:29.11.2017 17:38:53Wie ist das bei dir/euch im "Normalbetrieb"? RTC wird bei mir (und wahrscheinlich auch bei skapi) nicht automatisch von systemd-timesyncd korrigiert:Code: Alles auswählen
root@laptop:~# timedatectl Local time: Mi 2017-11-29 10:13:51 CET Universal time: Mi 2017-11-29 09:13:51 UTC RTC time: Mi 2017-11-29 11:13:56 Time zone: Europe/Berlin (CET, +0100) Network time on: yes NTP synchronized: no RTC in local TZ: yes
Code: Alles auswählen
$ timedatectl
Local time: Mi 2017-11-29 18:54:44 CET
Universal time: Mi 2017-11-29 17:54:44 UTC
RTC time: Mi 2017-11-29 17:54:44
Time zone: Europe/Berlin (CET, +0100)
System clock synchronized: yes
systemd-timesyncd.service active: yes
RTC in local TZ: no
und danach dufty2 aus.Jana66 hat geschrieben:29.11.2017 11:26:52hwclock --set ... probieren?
https://wiki.ubuntuusers.de/Systemzeit/
Korrekt. Erst durch den Thread/skapi ueberhaupt bemerkt. Im Interesse von skapi teste ich morgen, ob/wie ohne BIOS-Zugang/Reboot korrigierbar.Wenn ich Deine Ausgabe richtig interpretiere, dann hast Du Deine hardware clock auf Sommerzeit eingestellt.
Code: Alles auswählen
timedatectl
Local time: Fr 2017-12-01 08:37:59 CET
Universal time: Fr 2017-12-01 07:37:59 UTC
RTC time: Fr 2017-12-01 09:38:05
Time zone: Europe/Berlin (CET, +0100)
Network time on: yes
NTP synchronized: no
RTC in local TZ: yes
...
hwclock
2017-12-01 09:39:16.155698+0100
Code: Alles auswählen
hwclock --systohc
hwclock
2017-12-01 08:39:56.905721+0100
root@laptop:~# timedatectl
Local time: Fr 2017-12-01 08:40:04 CET
Universal time: Fr 2017-12-01 07:40:04 UTC
RTC time: Fr 2017-12-01 08:40:04
Time zone: Europe/Berlin (CET, +0100)
Network time on: yes
NTP synchronized: no
RTC in local TZ: yes
Code: Alles auswählen
hwclock --set --date="12/01/17 07:40:05"
root@laptop:~# hwclock
2017-12-01 07:40:10.655797+0100
..
timedatectl
Local time: Fr 2017-12-01 08:43:11 CET
Universal time: Fr 2017-12-01 07:43:11 UTC
RTC time: Fr 2017-12-01 07:40:41
Time zone: Europe/Berlin (CET, +0100)
Network time on: yes
NTP synchronized: no
RTC in local TZ: yes
Code: Alles auswählen
timedatectl set-local-rtc 0
root@laptop:~# timedatectl
Local time: Fr 2017-12-01 09:04:12 CET
Universal time: Fr 2017-12-01 08:04:12 UTC
RTC time: Fr 2017-12-01 08:04:12
Time zone: Europe/Berlin (CET, +0100)
Network time on: yes
NTP synchronized: no
RTC in local TZ: no
Code: Alles auswählen
timedatectl
Local time: Fr 2017-12-01 09:15:19 CET
Universal time: Fr 2017-12-01 08:15:19 UTC
RTC time: Fr 2017-12-01 08:15:19
Time zone: Europe/Berlin (CET, +0100)
Network time on: yes
NTP synchronized: yes
RTC in local TZ: no
Code: Alles auswählen
timedatectl
Local time: Fr 2017-12-01 09:28:16 CET
Universal time: Fr 2017-12-01 08:28:16 UTC
RTC time: Fr 2017-12-01 08:28:16
Time zone: Europe/Berlin (CET, +0100)
Network time on: yes
NTP synchronized: yes
RTC in local TZ: no
Code: Alles auswählen
Dez 01 08:26:59 laptop systemd-timesyncd[771]: System clock time unset or jumped backwards, restoring from recorded timestamp: Fri 2017-12-01 09:23:35
Dez 01 09:23:35 laptop systemd[1]: Time has been changed
Dez 01 09:23:35 laptop systemd[1]: Started Network Time Synchronization.
MSfree hat geschrieben:29.11.2017 14:00:08Die Lösung ist hier, Linux beizubringen, daß die HWClock in Lokalzeit läuft, dann klappt es auch im Zusammenspiel mit Windows. Eine entsprechende Option kann man in die Datei /etc/default/hwclock eintragen.
Wie man#s macht, ist es falsch.Linux auf lokale Zeit umstellen
Alternativ kann man Linux auf lokale Zeit umstellen. Da dies jedoch einige Probleme bereitet (Zeitumstellung bewirkt, dass Dateien mit Erstellungsdatum in der Zukunft existieren), sollte es nur als letzte Option genutzt werden.
...
Unter systemd nutzt man das Programm timedatectl:
timedatectl set-local-rtc 1
Code: Alles auswählen
timedatectl set-local-rtc 1
root@laptop:~# timedatectl
Local time: Fr 2017-12-01 09:49:32 CET
Universal time: Fr 2017-12-01 08:49:32 UTC
RTC time: Fr 2017-12-01 09:49:32
Time zone: Europe/Berlin (CET, +0100)
Network time on: yes
NTP synchronized: yes
RTC in local TZ: yes
Code: Alles auswählen
timedatectl
Local time: Fr 2017-12-01 09:58:19 CET
Universal time: Fr 2017-12-01 08:58:19 UTC
RTC time: Fr 2017-12-01 08:58:19
Time zone: Europe/Berlin (CET, +0100)
Network time on: yes
NTP synchronized: no
RTC in local TZ: yes
Code: Alles auswählen
timedatectl
Local time: Fr 2017-12-01 10:08:26 CET
Universal time: Fr 2017-12-01 09:08:26 UTC
RTC time: Fr 2017-12-01 09:08:55
Time zone: Europe/Berlin (CET, +0100)
Network time on: yes
NTP synchronized: no
RTC in local TZ: yes
Code: Alles auswählen
timedatectl
Local time: Fr 2017-12-01 10:23:30 CET
Universal time: Fr 2017-12-01 09:23:30 UTC
RTC time: Fr 2017-12-01 09:23:30
Time zone: Europe/Berlin (CET, +0100)
Network time on: yes
NTP synchronized: no
RTC in local TZ: yes
Code: Alles auswählen
timedatectl set-local-rtc 0
Naja, Linux wirklich in Lokalzeit laufen zu lassen, halte ich auch für problematisch.Jana66 hat geschrieben:01.12.2017 09:49:09Wie man#s macht, ist es falsch.Linux auf lokale Zeit umstellen
Alternativ kann man Linux auf lokale Zeit umstellen. Da dies jedoch einige Probleme bereitet (Zeitumstellung bewirkt, dass Dateien mit Erstellungsdatum in der Zukunft existieren), sollte es nur als letzte Option genutzt werden.
Code: Alles auswählen
timedatectl set-local-rtc 0
timedatectl set-ntp true
systemctl restart systemd-timesyncd.service
root@laptop:~# systemctl status systemd-timesyncd.service
● systemd-timesyncd.service - Network Time Synchronization
Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled)
Drop-In: /lib/systemd/system/systemd-timesyncd.service.d
└─disable-with-time-daemon.conf
Active: active (running) since Fri 2017-12-01 10:56:47 CET; 30s ago
Docs: man:systemd-timesyncd.service(8)
Main PID: 1947 (systemd-timesyn)
Status: "Synchronized to time server 10.65.200.1:123 (gw.borstel.test)."
Tasks: 2 (limit: 4915)
CGroup: /system.slice/systemd-timesyncd.service
└─1947 /lib/systemd/systemd-timesyncd
Dez 01 10:56:47 laptop systemd[1]: Starting Network Time Synchronization...
Dez 01 10:56:47 laptop systemd[1]: Started Network Time Synchronization.
Dez 01 10:56:47 laptop systemd-timesyncd[1947]: Synchronized to time server 10.65.200.1:123 (gw.borstel.test).
root@laptop:~# timedatectl
Local time: Fr 2017-12-01 10:57:50 CET
Universal time: Fr 2017-12-01 09:57:50 UTC
RTC time: Fr 2017-12-01 09:57:50
Time zone: Europe/Berlin (CET, +0100)
Network time on: yes
NTP synchronized: yes
RTC in local TZ: no
root@laptop:~#
Code: Alles auswählen
reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation" /v RealTimeIsUniversal /d 1 /t REG_DWORD /f
OK, du hast Win10 auf eine UTC-HWClock angepaßt, ich habe beschrieben, wie man Linux auf eine Lokalzeit-HWClock anpaßt. Beides funktioniert, welches einem jetzt lieber ist,ist Geschmacksache.Jana66 hat geschrieben:01.12.2017 11:03:38Ich habe mich doch lieber für den exakten Weg entschieden, RTC=UTC für Linux und Windows 10:
Ich weiß. Nicht böse sein!MSfree hat geschrieben:01.12.2017 11:40:34OK, du hast Win10 auf eine UTC-HWClock angepaßt, ich habe beschrieben, wie man Linux auf eine Lokalzeit-HWClock anpaßt.
Sollte funktionieren, bei meiner Win10-Recherche brachte Startpage (Google) auch ältere Treffer. "Bedürftige" können selber suchen ...Ich weiß leider nicht, ob man Win 7-8.1 auch über den Registry-Eintrag auf eine UTC-HWClock einstellen kann.