You are not logged in.

#1 2008-10-16 21:12:26

geo909
Member
Registered: 2008-09-07
Posts: 309

[solved] Can't set clock right!

Hello everybody,
I have a pretty annoying problem here..
I live in Ottawa, Canada, so my timezone is
Canada/Eastern

So at the localization part of rc.conf, I put:

 

#
# /etc/rc.conf - Main Configuration for Arch Linux
#

# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime"
# USEDIRECTISA: use direct I/O requests instead of /dev/rtc for hwclock
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="en_US.utf8"
HARDWARECLOCK="localtime"
USEDIRECTISA="yes"
TIMEZONE="Canada/Eastern"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

But now the system clock is set 7 hours later than
the real local time..

Could you please tell me what I am doing wrong?

Thanks a lot in advance

Last edited by geo909 (2008-10-17 18:39:21)

Offline

#2 2008-10-16 21:15:25

amranu
Member
Registered: 2008-09-25
Posts: 94

Re: [solved] Can't set clock right!

I'm in the same timezone

TIMEZONE="America/Toronto"

works for me

Offline

#3 2008-10-16 21:38:09

geo909
Member
Registered: 2008-09-07
Posts: 309

Re: [solved] Can't set clock right!

Oh well..
Don't know what's going on, I set it to America/Toronto and I have the same
problem, (shows 7 hours later).

It seems that I have to set the UCT somewhere or something?
Something is not well configured, but i have no idea..

Offline

#4 2008-10-16 22:22:40

Rumor
Member
From: Albany, NY
Registered: 2006-07-07
Posts: 638

Re: [solved] Can't set clock right!

Usually the best way to nip that problem is to install openntpd.

pacman -S openntpd

Then add openntpd to your daemons array in your /etc/rc.conf file so it will start with your next boot up, and then

/etc/rc.d/openntpd start

and your clock should be correct.


Smarter than a speeding bullet
My Goodreads profile

Offline

#5 2008-10-17 00:42:17

dschrute
Member
From: NJ, USA
Registered: 2007-04-09
Posts: 183

Re: [solved] Can't set clock right!

Can you post the output of date and hwclock ?

Offline

#6 2008-10-17 01:20:33

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [solved] Can't set clock right!

I had some trouble getting mine all set up with openntpd and Reality. After I had everything else I could think of set up properly (like all the stuff above), I added this to /etc/profile:

TZ='US/Pacific'; export TZ

Change US/Pacific to your timezone and see if it helps.

Offline

#7 2008-10-17 14:21:42

geo909
Member
Registered: 2008-09-07
Posts: 309

Re: [solved] Can't set clock right!

Oh well, that doesn't work either!
I will try to install openntpd although
all this is seems to be too much.. I just wanted to set up
my clock! Never thought setting the time would be such
a complicated task I have spent an hour on this!!!

Offline

#8 2008-10-17 16:13:12

Kooothor
Member
From: Paname
Registered: 2008-08-02
Posts: 226

Re: [solved] Can't set clock right!

Rumor wrote:
pacman -S openntpd

Then add openntpd to your daemons array in your /etc/rc.conf file so it will start with your next boot up, and then

/etc/rc.d/openntpd start

and your clock should be correct.

Right, I had troubles with my clock 2 hours late, I did the openntpd thing and it worked big_smile
So thanks Rumor smile

But my hwclock isn't right...(or is it ?)  sad

[ktr@arch ~]$ date
Fri Oct 17 18:14:45 CEST 2008
[ktr@arch ~]$ hwclock
Fri 17 Oct 2008 04:14:56 PM CEST  -0.812821 seconds
geo909 wrote:

all this is seems to be too much.. I just wanted to set up
my clock! Never thought setting the time would be such
a complicated task I have spent an hour on this!!!

Hi, welcome on linux... roll big_smile

Last edited by Kooothor (2008-10-17 16:19:44)


ktr

Offline

#9 2008-10-17 18:37:48

geo909
Member
Registered: 2008-09-07
Posts: 309

Re: [solved] Can't set clock right!

Ok, I just used the command 'date' to set the clock.
Used something like

date 10171435

to set it to October 17 14:35.

Don't have any idea if I just set the hardware clock or the system clock,
I just have my time right so its allright

Hi, welcome on linux...

Yeah, I know!
But that is waht it pays for Arch's 'simplicity'.
It's great when you have set it all up but in the meanwhile
it can get pretty annoying!

Last edited by geo909 (2008-10-17 18:38:27)

Offline

#10 2010-11-19 06:13:33

fancy_ninja
Member
From: Cedar Park, TX
Registered: 2010-10-31
Posts: 9

Re: [solved] Can't set clock right!

Rumor wrote:

Usually the best way to nip that problem is to install openntpd.

pacman -S openntpd

Then add openntpd to your daemons array in your /etc/rc.conf file so it will start with your next boot up, and then

/etc/rc.d/openntpd start

and your clock should be correct.


thank you! this thread helped me so much smile


"You speak like a green girl, unsifted in such perilous circumstance."
- William Shakespeare, Hamlet, I.iii

Offline

#11 2010-11-19 06:30:50

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [solved] Can't set clock right!

fancy_ninja - please don't bump old threads

https://wiki.archlinux.org/index.php/Fo … Bumping.27

Closing


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB