H
H
HitGirl2020-11-17 12:33:44
linux
HitGirl, 2020-11-17 12:33:44

Why is time not set in linux?

Hello!
I'm trying to set the time in linux Mint 20, but after installation it immediately goes astray, please tell me how to fix it?

#!/bin/bash
sudo hwclock --set --date="2017-08-17 20:43:36"
sudo hwclock -s
sudo date --set "Aug 17 20:43:36 2017"
date +"%b %T %Y"

[email protected]:~$ timedatectl
               Local time: Вт 2020-11-17 12:24:13 MSK
           Universal time: Вт 2020-11-17 09:24:13 UTC
                 RTC time: Чт 2017-08-17 17:43:46    
                Time zone: Europe/Moscow (MSK, +0300)
System clock synchronized: no                        
              NTP service: inactive                  
          RTC in local TZ: no

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
pfg21, 2020-11-17
@pfg21

does virtualbox have hardware time?? :)

R
rPman, 2020-11-17
@rPman

disable ntp time correction service

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question