После установки ОС, системное время на Linux и Windows может отличаться. Например на Linux 21:49, а на Windows 16:19.
Решение
По умолчанию Linux считает, что аппаратные часы установлены на время UTC, и применяет установленный часовой пояс. Отсюда и разница во времени.
Для приведения к одному времени необходимо исправить значение параметра UTC в файле /etc/default/rcS на «no».
# nano /etc/default/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 # assume that the BIOS clock is set to UTC time (recommended) UTC=yes # be more verbose during the boot process #VERBOSE=no # automatically repair filesystems with inconsistencies during boot #FSCKFIX=no
Меняем строчку UTC=yes на UTC=no, сохраняем изменения и радуемся.
Источники: help.ubuntu.ru, rus-linux.net
UPD 2017-04-018: В комментарии PIO указан вариант изменения настроек Windows для того же результата!
Надо чтоб Винда жила по законам Линуха, а не наоборот. Как это провернуть в Винде с временем?
regedit
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation
Создаем DWORD параметр RealTimeIsUniversal со значением 1
PIO, спасибо за вариант решения!