You are not logged in.

#1 2014-03-10 15:13:56

zetrotrack000
Member
Registered: 2012-02-07
Posts: 87

[Solved] wrong time on every reboot

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

#2 2014-03-10 15:35:06

JoeHartley
Member
Registered: 2011-10-01
Posts: 26

Re: [Solved] wrong time on every reboot

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

#3 2014-03-10 18:47:47

hradecek
Member
From: Slovakia
Registered: 2014-01-23
Posts: 15

Re: [Solved] wrong time on every reboot

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

#4 2014-03-10 20:12:53

zetrotrack000
Member
Registered: 2012-02-07
Posts: 87

Re: [Solved] wrong time on every reboot

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

#5 2014-03-10 21:04:15

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] wrong time on every reboot

What's the output of 'ls -l /etc/localtime'? What filesystem is that file on?
What's the output of 'timedatectl'?

Offline

#6 2014-03-11 09:18:27

zetrotrack000
Member
Registered: 2012-02-07
Posts: 87

Re: [Solved] wrong time on every reboot

Strangely today when I powered on my laptop, the time is correct smile
I will monitor it a day or a two then will report.

Offline

#7 2014-03-11 10:15:26

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [Solved] wrong time on every reboot

*Don't* run hwclock, if your kernel has:

$ zgrep HCTOSYS=y /proc/config.gz
CONFIG_RTC_HCTOSYS=y

Because your kernel is setting the time itself.

Install chrony wink

Offline

#8 2014-03-11 15:22:58

zetrotrack000
Member
Registered: 2012-02-07
Posts: 87

Re: [Solved] wrong time on every reboot

Solved. Now time is staying correct.

Offline

Board footer

Powered by FluxBB