You are not logged in.

#1 2007-03-11 20:33:46

rhys_rhaven
Member
Registered: 2007-03-11
Posts: 17
Website

Time will not set properly

I don't know if this is a bug or me being truely stupid, but i will cat my entire rc.conf, which i checked and checked again for typos, and it still wont set my timezone.

[root@Poseidon rhys]# hwclock
Sun 11 Mar 2007 08:31:19 PM EDT  -0.745676 seconds
[root@Poseidon rhys]# date
Sun Mar 11 20:31:19 EDT 2007

right now its 3:31PM. not 8. I have no idea what to do.

[root@Poseidon rhys]# cat /etc/rc.conf | grep -v "#"

LOCALE="en_US.utf8"
HARDWARECLOCK="UTC"
TIMEZONE="US/Eastern"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

MOD_AUTOLOAD="yes"
MOD_BLACKLIST=(8139cp tsdev)
MODULES=(8139too)
USELVM="no"

HOSTNAME="Poseidon"
lo="lo 127.0.0.1"
eth0="dhcp"
INTERFACES=(lo eth0)
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)

DAEMONS=(syslog-ng network netfs crond gpm)

Offline

#2 2007-03-11 23:47:09

borgcube
Member
From: Slovakia
Registered: 2007-03-11
Posts: 13
Website

Re: Time will not set properly

try sync your time:
ntpdate pool.ntp.org

Offline

#3 2007-03-12 01:45:54

rhys_rhaven
Member
Registered: 2007-03-11
Posts: 17
Website

Re: Time will not set properly

i used openntpd, but yea. it synced, and still shows the wrong time.

Offline

#4 2007-03-12 02:44:41

hpestilence
Member
Registered: 2005-06-20
Posts: 67

Re: Time will not set properly

Trying using a city thats in the same timezone I use America/Detroit

Offline

#5 2007-03-12 04:51:51

paperinik
Member
Registered: 2005-05-25
Posts: 46

Re: Time will not set properly

HARDWARECLOCK="localtime"
TIMEZONE="EST"

Offline

#6 2007-03-12 10:06:40

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

Re: Time will not set properly

there's two times: the system and the hardware time. Your system time is set by you by date or ntpdate, hardware time is set from your system time. If you use utc your hardware clock should be the opposite sign of your gmt timezone, local time will the same as your system time with no offsets. So basically, once you set your system time you need to set your hardware time otherwise calling hwclock as you did will show the hardware clock.

hwclock --utc --systohc

Offline

Board footer

Powered by FluxBB