You are not logged in.

#1 2008-02-03 14:29:44

Xinkill
Member
Registered: 2008-02-03
Posts: 5

Time zone problem

My time zone configuration in my rc.conf is way off. First it stood at Canada/Pacific, which was off by about an hour. So than I changed it to Europe//Brussels and that one is off by about 8 hours.

My rc.conf is

HARDWARECLOCK="Localtime"
TIMEZONE="Europe/Brussels"

Now did I forget something or do I need to synch with a time-server?

Offline

#2 2008-02-03 14:42:49

dyscoria
Member
Registered: 2008-01-10
Posts: 1,007

Re: Time zone problem

Change 'localtime' to 'UTC' and that should fix it. If I remember correctly, you shouldn't do this if you have XP installed aswell as XP doesn't support UTC or something.


flack 2.0.6: menu-driven BASH script to easily tag FLAC files (AUR)
knock-once 1.2: BASH script to easily create/send one-time sequences for knockd (forum/AUR)

Offline

#3 2008-02-03 14:46:16

Xinkill
Member
Registered: 2008-02-03
Posts: 5

Re: Time zone problem

Jamie wrote:

Change 'localtime' to 'UTC' and that should fix it. If I remember correctly, you shouldn't do this if you have XP installed aswell as XP doesn't support UTC or something.

Don't have XP installed any more and certainly not vista.

And shamely enough it's not working. I changed localtime into UTC and activated "use UTC" with the clock options of gnome.

Last edited by Xinkill (2008-02-03 14:53:54)

Offline

#4 2008-02-03 15:36:17

bionnaki
Member
Registered: 2006-09-05
Posts: 289

Offline

#5 2008-02-03 15:41:02

neodreams
Member
Registered: 2006-03-20
Posts: 87

Re: Time zone problem

I tried everything and the only way i get it to work is to create a symbolic link from my timezone to my localtime file.

Last edited by neodreams (2008-02-03 15:41:42)

Offline

#6 2008-02-03 16:25:23

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

Re: Time zone problem

If your clock is correct to UTC, add your timezone to /etc/profile like this (assuming Brussels):

TZ='Europe/Brussels'; export TZ

You'll need to log out and back in again for the changes to take effect.



Welcome to the forums.

Last edited by skottish (2008-02-03 16:26:30)

Offline

#7 2008-02-03 16:51:39

Xinkill
Member
Registered: 2008-02-03
Posts: 5

Re: Time zone problem

skottish wrote:

If your clock is correct to UTC, add your timezone to /etc/profile like this (assuming Brussels):

TZ='Europe/Brussels'; export TZ

You'll need to log out and back in again for the changes to take effect.



Welcome to the forums.

Thanks, but i did added that piece of code to my profile but still no luck.

Offline

#8 2008-02-03 17:14:49

neodreams
Member
Registered: 2006-03-20
Posts: 87

Re: Time zone problem

mv /etc/localtime /etc/localtime.old
cp -s /usr/share/zoneinfo/Europe/Brussels /etc/localtime

Then sync your time with NTP, should work.

Offline

#9 2008-02-03 18:09:30

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

Re: Time zone problem

neodreams wrote:

Then sync your time with NTP, should work.

Sorry Xinkill, I didn't take into account that I'm running openntpd when I posted. Thanks neodreams.

Offline

#10 2008-02-03 18:45:54

bionnaki
Member
Registered: 2006-09-05
Posts: 289

Re: Time zone problem

openntpd works great. recommended.

Offline

#11 2008-02-03 19:21:02

Xinkill
Member
Registered: 2008-02-03
Posts: 5

Re: Time zone problem

Well i installed Openntpd but I can't really figure out how to use it or which server to connect to to synch my time.

Offline

#12 2008-02-03 20:06:34

bionnaki
Member
Registered: 2006-09-05
Posts: 289

Offline

#13 2008-02-03 20:10:11

violagirl23
Member
Registered: 2008-01-24
Posts: 184

Re: Time zone problem

Wow, I just always thought there was just NTP by itself.  If you are having trouble getting it to work, just straight NTP is always nice as well and not really all that hard to set up.
This tutorial isn't for Arch, it's for Gentoo, but if you need it, it might come in handy:
http://gentoo-wiki.com/HOWTO_NTP
and here's another thorough guide to openntp if the first doesn't help:
http://gentoo-wiki.com/HOWTO_NTP
Good luck!


"You can't just ask to borrow somebody else's lampshade. It's AWKWARD!"

Offline

#14 2008-02-03 20:10:35

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

Re: Time zone problem

Xinkill wrote:

Well i installed Openntpd but I can't really figure out how to use it or which server to connect to to synch my time.

It comes pre-configured out of the box. You can edit its settings, but it just works. You do need to put it in your daemons array in rc.conf.

Last edited by skottish (2008-02-03 20:11:48)

Offline

Board footer

Powered by FluxBB