linux:timedatectl
Различия
Показаны различия между двумя версиями страницы.
| linux:timedatectl [2025/12/06 08:48] – создано Кирилл | linux:timedatectl [Дата неизвестна] (текущий) – внешнее изменение (Дата неизвестна) 127.0.0.1 | ||
|---|---|---|---|
| Строка 1: | Строка 1: | ||
| + | ====== Настройка локального времени в linux ====== | ||
| + | |||
| + | ---- | ||
| + | |||
| + | Открываем терминал **Ctrl+Alt+T**, | ||
| + | |||
| + | Включаем локальное время: | ||
| + | < | ||
| + | sudo timedatectl set-local-rtc 1 --adjust-system-clock | ||
| + | </ | ||
| + | |||
| + | Смотрим статус: | ||
| + | < | ||
| + | sudo timedatectl | ||
| + | </ | ||
| + | |||
| + | Вывод в терминале: | ||
| + | |||
| + | < | ||
| + | Local time: Сб 2025-08-09 13:40:20 +07 | ||
| + | | ||
| + | RTC time: Сб 2025-08-09 13:40:20 | ||
| + | Time zone: Asia/ | ||
| + | System clock synchronized: | ||
| + | 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 | ||
| + | ' | ||
| + | |||
| + | </ | ||
| + | |||
| + | Выключаем локальное время: | ||
| + | < | ||
| + | sudo timedatectl set-local-rtc 0 | ||
| + | </ | ||
