You are not logged in.

#1 2005-09-29 23:14:36

Cotton
Member
From: Cornwall, UK
Registered: 2004-09-17
Posts: 568

Annoying clock problems

I'm thoroughly confused over the clock on my pc.

After running:   rdate -s time.nist.gov

The time reported in vc1 with "hwclock" (as root) is 23:54 BST (this is the correct time)
The time reported in vc2 with "hwclock" (as a normal user) is 18:54 EDT (this is incorrect)
The time reported in an Xterm window with "hwclock" (as root) is 23:54 EDT (this is incorrect)

The time reported in vc1 with "date" (as root) is 23:54 BST  (this is the correct time)
The time reported in vc2 with "date" (as a normal user) is 18:54 EDT (this is incorrect)
The time reported in an Xterm window with "date" (as root) is 18:54 EDT  (this is incorrect)

/etc/rc.conf contains:
HARDWARECLOCK="UTC"
TIMEZONE=Europe/London

I seem to be stuck with a 5 hour offset or something when using X.

What on earth is going on?   (BTW this is not a clock drift problem)

It used to work fine but I had difficulties recently trying to change to udev (had to revert to devfs,under kernel 2.6.12-ck5) and have experienced the problem ever since.

Offline

#2 2005-09-30 07:43:19

Kern
Member
From: UK
Registered: 2005-02-09
Posts: 464

Re: Annoying clock problems

tried HARDWARECLOCK="localtime"  ?

edit:
you dont have Windows on the same machine do you?
and maybe check your timesetting directly from BIOS as a point of reference.
really good expo Here

Offline

#3 2005-09-30 15:43:33

Cotton
Member
From: Cornwall, UK
Registered: 2004-09-17
Posts: 568

Re: Annoying clock problems

Yes I've tried HARDWARECLOCK="localtime" and it makes no difference to the readings above.

The machine is microsoft free so its not that.

Its the difference in the values for different users and the fact that the time is correct, so long as I don't use a window manager, that makes me think its not "clock" related but rather how the clock is interpreted by X.

Maybe there are permission problems on some critical clock related file, although the /usr/share/zoneinfo & /etc/timezone files all look ok.

I just wish I knew which file to edit or which package to reinstall!

BTW which package contains hwclock?

Offline

#4 2005-09-30 17:46:43

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Annoying clock problems

Have you tried with different WM to see if problem persist?
To get package containing hwclock:
whereis hwclock
pacman -Qo /path/to/hwclock

Offline

#5 2005-09-30 18:23:21

Cotton
Member
From: Cornwall, UK
Registered: 2004-09-17
Posts: 568

Re: Annoying clock problems

Yes, its common across xfce4, fluxbox & icewm.

Offline

#6 2005-11-05 15:28:25

Cotton
Member
From: Cornwall, UK
Registered: 2004-09-17
Posts: 568

Re: Annoying clock problems

FWIW the culprit was a line in my .bash_profile:

export TZ=EST5EDT

How that got there, I have no idea.

Offline

#7 2005-11-05 19:36:28

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: Annoying clock problems

So did that fix the different times in each console or the 5 hour offset?
I've never been able to get UTC to sync to my time zone. I was always under the impression it will only go to a standard UTC time no matter what. Is this true? If so can anyone tell me why in the world someone would want this?

Offline

#8 2005-11-05 20:11:10

cs25x
Member
Registered: 2004-05-04
Posts: 150

Re: Annoying clock problems

Pengiuin:
The entry in .bash_profile explains why it differed between root and a normal user. have you tried export TZ=your timezone whatever that is, in /etc/profile. are you using a valid timezone?

tzselect

--(*(cs25x--));

Offline

#9 2005-11-05 21:46:04

Cotton
Member
From: Cornwall, UK
Registered: 2004-09-17
Posts: 568

Re: Annoying clock problems

Penguin wrote:

So did that fix the different times in each console or the 5 hour offset?

Yes.  Logging into a console as root gave the correct time.  Logging into a console as a user gave the wrong time (due to the bash profile setting), which, after starting xce4/blackbox/kde was inherited by the X terminals both as user and as root.  Hence the confusion.

Offline

#10 2005-11-05 23:16:26

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: Annoying clock problems

Ah, ok. Thanks guys. UTC does work for me. After doing alot of googling, I realized I was just confused by the concept of it and how to set it up.

Offline

Board footer

Powered by FluxBB