Аппаратные часы интерпретируются как UTC

Я только что установил Ubuntu 16.04.1 вместо Windows 8.1. Но системное время +5: 30 опережает фактическое время. Я из Индии, а смещение UTC - +5: 30. Запустив hwclock, я обнаружил, что моя система интерпретирует аппаратные часы как UTC, в то время как на самом деле это локальное время. Я попытался отредактировать файл / etc / default / rcS (в соответствии с часами аппаратного обеспечения используется время UTC). Но файл rcS не содержит записи UTC. Содержимое файла показано ниже. Что можно сделать?

Результат hwclock --debug:

hwclock from util-linux 2.27.1
Using the /dev interface to the clock.
Last drift adjustment done at 1474290330 seconds after 1969
Last calibration done at 1474290330 seconds after 1969
Hardware clock is on local time
Assuming hardware clock is kept in local time.
Waiting for clock tick...
...got clock tick
Time read from Hardware Clock: 2016/09/19 18:55:12
Hw clock time : 2016/09/19 18:55:12 = 1474291512 seconds since 1969
Time since last adjustment is 1182 seconds
Calculated Hardware Clock drift is 0.000000 seconds
Monday 19 September 2016 06:55:11 PM IST  .186866 seconds

rcS файл:

#
# /etc/default/rcS
#
# Default settings for the scripts in /etc/rcS.d/
#
# For information about these variables see the rcS(5) manual page.
#
# This file belongs to the "initscripts" package.

# delete files in /tmp during boot older than x days.
# '0' means always, -1 or 'infinite' disables the feature
#TMPTIME=0

# spawn sulogin during boot, continue normal boot if not used in 30 seconds
#SULOGIN=no

# do not allow users to log in until the boot has completed
#DELAYLOGIN=no

# be more verbose during the boot process
#VERBOSE=no

# automatically repair filesystems with inconsistencies during boot
#FSCKFIX=no
1
задан 13 April 2017 в 15:25

1 ответ

Если вы еще не собираетесь использовать Windows, я рекомендую просто установить время (date -s) и сохранить UTC в аппаратных часах.

1
ответ дан 23 May 2018 в 06:00
  • 1
    Исправлено, когда я сделал то, что вы сказали вместе с 'sudo timedatectl set-local-rtc 1'. Благодарю. – Subin P 19 September 2016 в 12:56

Другие вопросы по тегам:

Похожие вопросы: