You are not logged in.
Following by these articles: Time, Linux tips i tried to set time in my Arch GNU/Linux. Each time after all actions i get proper time from timedatectl, but time in taskbar doesn't change. After reboot i get wrong time from timedatectl again.
What should i do?
p.s. I use Arch with Virtualbox if it is important.
Offline
Offline
Could you please specify what actions exactly you are taking? The commands you run, for example.
Sure.
1)After turning on my VM, i type timedatectl and
get:
$ timedatectl
Local time: Wed 2015-05-06 13:35:27 MSK
Universal time: Wed 2015-05-06 10:35:27 UTC
RTC time: Wed 2015-05-06 10:35:26
Time zone: Europe/Moscow (MSK, +0300)
NTP enabled: no
NTP synchronized: no
RTC in local TZ: no
DST active: n/a
Current local time is 09:22. Current UTC from here is 06:26.
2)$ sudo timedatectl set-time "2015-05-06 09:28:15"
timedatectl
Local time: Wed 2015-05-06 13:46:46 MSK
Universal time: Wed 2015-05-06 10:46:46 UTC
RTC time: Wed 2015-05-06 06:28:18
Time zone: Europe/Moscow (MSK, +0300)
NTP enabled: no
NTP synchronized: no
RTC in local TZ: no
DST active: n/a
3)$ sudo timedatectl set-local-rtc 1
4)$ timedatectl
Local time: Wed 2015-05-06 13:52:54 MSK
Universal time: Wed 2015-05-06 10:52:54 UTC
RTC time: Wed 2015-05-06 13:52:54
Time zone: Europe/Moscow (MSK, +0300)
NTP enabled: no
NTP synchronized: no
RTC in local TZ: yes
DST active: n/aWarning: The system is configured to read the RTC time in the local time zone. This
mode can not 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'.
5)$ sudo timedatectl set-time "2015-05-06 09:36:15"
6)$ timedatectl
Local time: Wed 2015-05-06 09:36:17 MSK
Universal time: Wed 2015-05-06 06:36:17 UTC
RTC time: Wed 2015-05-06 09:36:17
Time zone: Europe/Moscow (MSK, +0300)
NTP enabled: no
NTP synchronized: no
RTC in local TZ: yes
DST active: n/aWarning: The system is configured to read the RTC time in the local time zone. This
mode can not 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'.A
And after rebooting, how exactly is the time wrong? Is it just the wrong timezone, or is the clock completely off?
So, what i get after reboot:
$ timedatectl
Local time: Wed 2015-05-06 14:08:41 MSK
Universal time: Wed 2015-05-06 11:08:41 UTC
RTC time: Wed 2015-05-06 11:08:39
Time zone: Europe/Moscow (MSK, +0300)
NTP enabled: no
NTP synchronized: no
RTC in local TZ: yes
DST active: n/aWarning: The system is configured to read the RTC time in the local time zone. This
mode can not 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'.
Timezone is always right.
Offline
So you're in UTC+3, but the (virtual) system is giving you some bogus time (approx. 4h 10min ahead).
Is the time and timezone on your host system (presumably Windows) configured properly?
I'm not running any Linux system on a clock configured for localtime, so I can't quite tell (nor test) if the RTC's behaviour you show is normal...
However, I just stumbled over this: https://www.virtualbox.org/ticket/1310.
Could it be that your VirtualBox is running with localtime? And if yes, what happens if you make it use UTC?
Offline
So you're in UTC+3, but the (virtual) system is giving you some bogus time (approx. 4h 10min ahead).
Is the time and timezone on your host system (presumably Windows) configured properly?
no, my host system time is wrong since i tried to install Kubuntu in Virtual Box(about 1.5 years ago)
I'm not running any Linux system on a clock configured for localtime, so I can't quite tell (nor test) if the RTC's behaviour you show is normal...
However, I just stumbled over this: https://www.virtualbox.org/ticket/1310.
Could it be that your VirtualBox is running with localtime? And if yes, what happens if you make it use UTC?
Default settings of my VirtualBox include checked "hardware clock in UTC time" parameter. Should i change it?
Offline
no, my host system time is wrong since i tried to install Kubuntu in Virtual Box(about 1.5 years ago)
So... have you tried adjusting the host system's time (and your physical machine's clock)? If your host's time settings are off, I don't expect the VM to behave correctly (but I could also be wrong).
Default settings of my VirtualBox include checked "hardware clock in UTC time" parameter. Should i change it?
No, I would leave it in UTC. I'd also
timedatectl set-local-rtc 0
just to rule out localtime-related issues.
Offline