You are not logged in.
Pages: 1
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
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
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
Have you tried with different WM to see if problem persist?
To get package containing hwclock:
whereis hwclock
pacman -Qo /path/to/hwclock
Offline
Yes, its common across xfce4, fluxbox & icewm.
Offline
FWIW the culprit was a line in my .bash_profile:
export TZ=EST5EDT
How that got there, I have no idea.
Offline
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
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
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
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
Pages: 1