You are not logged in.
Pages: 1
Hi
During installation of arch , I have used:
hwclock --systohc --utc
but everytime I restart my laptop, the time moves back 5 hours (to GMT). How can I fix it?
Regards
Last edited by zetrotrack000 (2014-03-11 15:23:22)
Offline
run the command 'ls -l /etc/localtime'
It should be a link to another file. In your case, it's likely /usr/share/zoneinfo/America/New_York since you say you're 5 hours off GMT.
Offline
Hi,
I think you didn't set timezone during the installation. Maybe this will helps, https://wiki.archlinux.org/index.php/time#Time_zone. It creates an symlink /etc/localtime pointing to /usr/share/zoneinfo/ . You can do it on your own, like here https://wiki.archlinux.org/index.php/Be … #Time_zone.
$ perl -wle '$_ = 1; (1 x $_) !~ /^(11+)\1+$/ && print while $_++'
Offline
During installation I have used 'ln -s' to create a symlink to my timezone. However strangely when now I issue the command 'ls -l /etc/localtime' it is not pointing to my timezone, rather it is showing /etc/localtime as a stand alone file. Then I again created the symlink but after reboot it is still showing it as a stand alone file.
Offline
What's the output of 'ls -l /etc/localtime'? What filesystem is that file on?
What's the output of 'timedatectl'?
Offline
Strangely today when I powered on my laptop, the time is correct ![]()
I will monitor it a day or a two then will report.
Offline
*Don't* run hwclock, if your kernel has:
$ zgrep HCTOSYS=y /proc/config.gz
CONFIG_RTC_HCTOSYS=yBecause your kernel is setting the time itself.
Install chrony ![]()
Offline
Solved. Now time is staying correct.
Offline
Pages: 1