timedatectl status
Local time: szo 2020-07-25 21:41:23 CEST
Universal time: szo 2020-07-25 19:41:23 UTC
RTC time: szo 2020-07-25 21:41:23
Time zone: Europe/Budapest (CEST, +0200)
System clock synchronized: yes
NTP service: active
RTC in local TZ: yes
Warning: The system is configured to read the RTC time in the local time zone.
This mode cannot be fully supported. It will create various problems
with time zone changes and daylight saving time adjustments. The RTC
time is never updated, it relies on external facilities to maintain it.
If at all possible, use RTC in UTC by calling
'timedatectl set-local-rtc 0'.
... v Debian alatt alapértelmezetten így van (lásd fentebb a status kimenetét)
Míg:
sudo timedatectl set-local-rtc 0
timedatectl status
Local time: szo 2020-07-25 21:42:44 CEST
Universal time: szo 2020-07-25 19:42:44 UTC
RTC time: szo 2020-07-25 19:42:44
Time zone: Europe/Budapest (CEST, +0200)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
Kézikönyv,
man timedatectl
és részlete:
set-local-rtc [BOOL]
Takes a boolean argument. If "0", the system is configured to
maintain the RTC in universal time. If "1", it will maintain the
RTC in local time instead. Note that maintaining the RTC in the
local timezone is not fully supported and will create various
problems with time zone changes and daylight saving adjustments. If
at all possible, keep the RTC in UTC mode. Note that invoking this
will also synchronize the RTC from the system clock, unless
--adjust-system-clock is passed (see above). This command will
change the 3rd line of /etc/adjtime, as documented in hwclock(8).
A paraméter „timedatectl set-local-rtc 1 --adjust-system-clock” és a 3. sor változásai:
timedatectl set-local-rtc 1 --adjust-system-clock
cat /etc/adjtime
0.000000 1595704058 0.000000
1595704058
LOCAL
... az Universal time és az RTC time lesz ugyanaz:
Local time: szo 2020-07-25 21:41:23 CEST
Universal time: szo 2020-07-25 19:41:23 UTC
RTC time: szo 2020-07-25 19:41:23
-----
sudo timedatectl set-local-rtc 0
cat /etc/adjtime
0.000000 1595704058 0.000000
1595704058
UTC
Itt az Universal time és az RTC time lesz ugyanaz:
Local time: szo 2020-07-25 21:42:44 CEST
Universal time: szo 2020-07-25 19:42:44 UTC
RTC time: szo 2020-07-25 19:42:44
-----
sudo timedatectl set-local-rtc 1
cat /etc/adjtime
0.000000 1595704058 0.000000
1595704058
LOCAL
... itt a Local time és az RTC time lesz ugyanaz:
Local time: szo 2020-07-25 21:43:04 CEST
Universal time: szo 2020-07-25 19:43:04 UTC
RTC time: szo 2020-07-25 21:43:04
Két lehetőség van, Linuxot rávenni, hogy úgy számolja az időt, mint a Windows, vagy a Windowst rávenni, hogy úgy számolja az időt, mint a Linux.
Linux esetében terminál parancs:
timedatectl set-local-rtc 1 --adjust-system-clock
Windows esetében:
Első lépésként ki kell kapcsolni ideiglenesen az automatikus idő frissítést (Internet időt).
Aztán a registryben meg kell keresni ezt a bejegyzést:
timedatectl status
Local time: szo 2020-07-25 23:05:11 CEST
Universal time: szo 2020-07-25 21:05:11 UTC
RTC time: szo 2020-07-25 21:05:11
Time zone: Europe/Budapest (CEST, +0200)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
timedatectl status
Local time: szo 2020-07-25 23:05:11 CEST
Universal time: szo 2020-07-25 21:05:11 UTC
RTC time: szo 2020-07-25 21:05:11
Time zone: Europe/Budapest (CEST, +0200)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
timedatectl status
Local time: szo 2020-07-25 21:41:23 CEST
Universal time: szo 2020-07-25 19:41:23 UTC
RTC time: szo 2020-07-25 21:41:23
Time zone: Europe/Budapest (CEST, +0200)
System clock synchronized: yes
NTP service: active
RTC in local TZ: yes
Warning: The system is configured to read the RTC time in the local time zone.
This mode cannot be fully supported. It will create various problems
with time zone changes and daylight saving time adjustments. The RTC
time is never updated, it relies on external facilities to maintain it.
If at all possible, use RTC in UTC by calling
'timedatectl set-local-rtc 0'.
... v Debian alatt alapértelmezetten így van (lásd fentebb a status kimenetét)
Míg:
sudo timedatectl set-local-rtc 0
timedatectl status
Local time: szo 2020-07-25 21:42:44 CEST
Universal time: szo 2020-07-25 19:42:44 UTC
RTC time: szo 2020-07-25 19:42:44
Time zone: Europe/Budapest (CEST, +0200)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
Kézikönyv,
man timedatectl
és részlete:
set-local-rtc [BOOL]
Takes a boolean argument. If "0", the system is configured to
maintain the RTC in universal time. If "1", it will maintain the
RTC in local time instead. Note that maintaining the RTC in the
local timezone is not fully supported and will create various
problems with time zone changes and daylight saving adjustments. If
at all possible, keep the RTC in UTC mode. Note that invoking this
will also synchronize the RTC from the system clock, unless
--adjust-system-clock is passed (see above). This command will
change the 3rd line of /etc/adjtime, as documented in hwclock(8).
A paraméter „timedatectl set-local-rtc 1 --adjust-system-clock” és a 3. sor változásai:
timedatectl set-local-rtc 1 --adjust-system-clock
cat /etc/adjtime
0.000000 1595704058 0.000000
1595704058
LOCAL
... az Universal time és az RTC time lesz ugyanaz:
Local time: szo 2020-07-25 21:41:23 CEST
Universal time: szo 2020-07-25 19:41:23 UTC
RTC time: szo 2020-07-25 19:41:23
-----
sudo timedatectl set-local-rtc 0
cat /etc/adjtime
0.000000 1595704058 0.000000
1595704058
UTC
Itt az Universal time és az RTC time lesz ugyanaz:
Local time: szo 2020-07-25 21:42:44 CEST
Universal time: szo 2020-07-25 19:42:44 UTC
RTC time: szo 2020-07-25 19:42:44
-----
sudo timedatectl set-local-rtc 1
cat /etc/adjtime
0.000000 1595704058 0.000000
1595704058
LOCAL
... itt a Local time és az RTC time lesz ugyanaz:
Local time: szo 2020-07-25 21:43:04 CEST
Universal time: szo 2020-07-25 19:43:04 UTC
RTC time: szo 2020-07-25 21:43:04
A névben benne, hogy összekapcsolod az RTC-t (a Windows használja) a Local time-al. Az 1 ezen beállítás bekapcsolása, a 0 a beálltás kikapcsolása. A kéziköny megfogalmazza.
A névben benne, hogy összekapcsolod az RTC-t (a Windows használja) a Local time-al. Az 1 ezen beállítás bekapcsolása, a 0 a beálltás kikapcsolása. A kéziköny megfogalmazza.
UTC / RTC
Beküldte kimarite -
Értékelés:
Kimenetek?
Vélhetően a Windowst kell UTC-re beállítanod, azt követi a Linux. Módszer:
https://wiki.archlinux.org/index.php/System_time#UTC_in_Windows
Már többször ki volt itt is tárgyalva...
Beküldte T.István -
Értékelés:
Két lehetőség van, Linuxot rávenni, hogy úgy számolja az időt, mint a Windows, vagy a Windowst rávenni, hogy úgy számolja az időt, mint a Linux.
Linux esetében terminál parancs:
Windows esetében:
Első lépésként ki kell kapcsolni ideiglenesen az automatikus idő frissítést (Internet időt).
Aztán a registryben meg kell keresni ezt a bejegyzést:
Itt hozzá kell adni egy új duplaszót (DWORD 32 bit), aminek neve: RealTimeIsUniversal
Duplaklikk rajta, és 1-es értéket ani neki.
Egyszerűbb megoldás: ezt (Windows alatt) letölteni:
https://www.howtogeek.com/wp-content/uploads/2017/08/Make-Windows-Use-UTC-Time.zip
Kicsomagolni, majd a Reg fájlon duplán kattintani...
Már többször ki volt itt is tárgyalva...
Beküldte kimarite -
Értékelés:
... v Debian alatt alapértelmezetten így van (lásd fentebb a status kimenetét)
Míg:
Kézikönyv,
és részlete:
A paraméter „timedatectl set-local-rtc 1 --adjust-system-clock” és a 3. sor változásai:
... az Universal time és az RTC time lesz ugyanaz:
-----
Itt az Universal time és az RTC time lesz ugyanaz:
-----
... itt a Local time és az RTC time lesz ugyanaz:
UTC / RTC
Beküldte bogil99 -
Értékelés:
2020-07-25 23:04:27.154328+02:00
Már többször ki volt itt is tárgyalva...
Beküldte bogil99 -
Értékelés:
UTC / RTC
Beküldte kimarite -
Értékelés:
Már többször ki volt itt is tárgyalva...
Beküldte bogil99 -
Értékelés:
Nekem a
Lehet már későn van és le kellene feküdnöm, de minek a 3. sora ez: timedatectl set-local-rtc 1 ?
Már többször ki volt itt is tárgyalva...
Beküldte kimarite -
Értékelés:
https://manpages.debian.org/buster/systemd/timedatectl.1.en.html * https://www.man7.org/linux/man-pages/man1/timedatectl.1.html
Itt is nézheted:minek a 3. sora ez: timedatectl set-local-rtc 1 ?
A névben benne, hogy összekapcsolod az RTC-t (a Windows használja) a Local time-al. Az 1 ezen beállítás bekapcsolása, a 0 a beálltás kikapcsolása. A kéziköny megfogalmazza.
Már többször ki volt itt is tárgyalva...
Beküldte bogil99 -
Értékelés: