You are not logged in.

#1 2012-10-01 23:30:37

apgrnt
Member
Registered: 2012-10-01
Posts: 8

[SOLVED]Wrong date and time following install

I just installed Arch on two of my boxs.
The first installation on my alternate computer went fine.

However on my second computer i bumped into some problems. The big one right now is that my date and time keeps changing.
I followed the procedure in the beginners guide on setting the time.
created the symbolic link to /etc/localtime and ran 
#hwclock --systohc --utc

after getting my DE up i noticed my time off by around 16 hours and the date was from 2010....
anyway i set the date using

#date -u

to the correct date but after restart the date gets reset to the wrong date/time.

on an unrelated note I also had to set all my sig requireds to Never in /etc/pacman.conf because every key to every package was not not registering.

any suggestions would be welcome because the date thing is causing problems with my web browsing

Last edited by apgrnt (2012-10-02 00:28:37)

Offline

#2 2012-10-01 23:39:36

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,694

Re: [SOLVED]Wrong date and time following install

Is you hardware clock set to UTC?

Offline

#3 2012-10-01 23:39:51

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

Re: [SOLVED]Wrong date and time following install

apgrnt wrote:

on an unrelated note I also had to set all my sig requireds to Never in /etc/pacman.conf because every key to every package was not not registering.

I think it actually may be caused by your date/time problems.

What's the output of '# hwclock --debug'? What does your BIOS clock say?

Offline

#4 2012-10-01 23:45:12

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,694

Re: [SOLVED]Wrong date and time following install

Oh, and forget about using the "date" command, all that does is set the system time, ie inside the OS only. You need to set the hardware clock with the hwclock command karol mentioned.

Offline

#5 2012-10-01 23:50:51

apgrnt
Member
Registered: 2012-10-01
Posts: 8

Re: [SOLVED]Wrong date and time following install

output of hwclock -- debug
hwclock from util-linux 2.22
Using /dev interface to clock.
Last drift adjustment done at 1262351154 seconds after 1969
Last calibration done at 1262351154 seconds after 1969
Hardware clock is on UTC time
Assuming hardware clock is kept in UTC time.
Waiting for clock tick...
...got clock tick
Time read from Hardware Clock: 2010/01/01 17:49:00
Hw clock time : 2010/01/01 17:49:00 = 1262368140 seconds since 1969
Fri 01 Jan 2010 09:49:00 AM PST  -0.360051 seconds

hwclock from util-linux 2.22
Using /dev interface to clock.
Last drift adjustment done at 1262351154 seconds after 1969
Last calibration done at 1262351154 seconds after 1969
Hardware clock is on UTC time
Assuming hardware clock is kept in UTC time.
Waiting for clock tick...
...got clock tick
Time read from Hardware Clock: 2010/01/01 17:49:00
Hw clock time : 2010/01/01 17:49:00 = 1262368140 seconds since 1969
Fri 01 Jan 2010 09:49:00 AM PST  -0.360051 seconds

and yes its set to utc

Offline

#6 2012-10-01 23:53:18

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

Re: [SOLVED]Wrong date and time following install

Have you tried setting the time: https://wiki.archlinux.org/index.php/Time#Set_clock again?

Offline

#7 2012-10-02 00:16:23

apgrnt
Member
Registered: 2012-10-01
Posts: 8

Re: [SOLVED]Wrong date and time following install

no I hadn't. Thanks for the quick help that seems to have worked after i rebooted.

And you think that's what was causing my key errors when installing the base?

Offline

#8 2012-10-02 00:20:52

apgrnt
Member
Registered: 2012-10-01
Posts: 8

Re: [SOLVED]Wrong date and time following install

err how do i mark this as solved?

Offline

#9 2012-10-02 00:21:49

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

Re: [SOLVED]Wrong date and time following install

apgrnt wrote:

err how do i mark this as solved?

You read the forum rules https://bbs.archlinux.org/viewtopic.php?id=130309 :-)

Offline

#10 2012-10-02 01:03:12

apgrnt
Member
Registered: 2012-10-01
Posts: 8

Re: [SOLVED]Wrong date and time following install

Thanks but I am still having trouble with my package sigatures but i'll open a separate thread for that.

Offline

Board footer

Powered by FluxBB