You are not logged in.

#1 2006-12-06 07:05:52

KiXeR
Member
Registered: 2006-11-01
Posts: 8

Localtime is wrong

Hi all!

I'm new to Arch but man i love this fast distro smile.
I have a small problem, my clock isn't showing right time. Here is a part of my rc.conf

#
# /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"
# 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/unimaps
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE=
HARDWARECLOCK="localtime"
TIMEZONE=Europe/Stockholm
KEYMAP=sv-latin1.map.gz
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"


What is wrong? My clock is showing 1h wrong time.

/K


METAL UP YOUR ASS!

Offline

#2 2006-12-06 07:34:42

syd
Member
From: Auckland, NZ
Registered: 2006-01-22
Posts: 155

Re: Localtime is wrong

Change the clock in you bios and it should be sweet.

Offline

#3 2006-12-06 07:37:46

KiXeR
Member
Registered: 2006-11-01
Posts: 8

Re: Localtime is wrong

Do i really need to? I had no problem in other distros. like Ubuntu and Suse.?  :?


METAL UP YOUR ASS!

Offline

#4 2006-12-06 08:15:16

syd
Member
From: Auckland, NZ
Registered: 2006-01-22
Posts: 155

Re: Localtime is wrong

Sorry i couldn't tell you that. I know that i didnt have to with other distros as well, but i did with arch.

Its come up in these forums before as i recall.

Offline

#5 2006-12-06 12:12:40

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

Re: Localtime is wrong

set you system time:

date MMDDhhmmYYYY

set your bios clock to it:

hwclock --systohc --localtime

Offline

#6 2006-12-06 13:42:35

Snarkout
Member
Registered: 2005-11-13
Posts: 542

Re: Localtime is wrong

I'd recommend doing the proscribed fixes first and then setting up ntp, unless you're not connected to the internet often.


Unthinking respect for authority is the greatest enemy of truth.
-Albert Einstein

Offline

#7 2006-12-06 14:47:57

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,094

Re: Localtime is wrong

If you are not dualbooting with windows, it's "recomended" to set the HW clock as UTC.

If the box is connected to the internett often, do as Snarlout wrote, and take a look at Openntp


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#8 2006-12-06 17:32:11

Romashka
Forum Fellow
Registered: 2005-12-07
Posts: 1,054

Re: Localtime is wrong

KiXeR: I think you have encountered bug #5529. You should correct time after install, until there will be CD or FTP install with initscripts-0.7.3-1 (or greater).


to live is to die

Offline

#9 2006-12-07 06:32:10

KiXeR
Member
Registered: 2006-11-01
Posts: 8

Re: Localtime is wrong

Thx all for u'r tips/help but after few reboots it fixed it self, strange. Anyway it works now  big_smile.


METAL UP YOUR ASS!

Offline

#10 2006-12-07 18:11:25

bjorn
Member
From: Sandnes, Norway
Registered: 2006-11-19
Posts: 10
Website

Re: Localtime is wrong

pacman -Sf ntp; ntpdate ntp.uio.no; hwclock --sysyohc --localtime


I never said anything about that.
(archlinux.no)

Offline

#11 2006-12-13 19:07:14

kamagurka
Member
From: Munich, Germany
Registered: 2006-02-20
Posts: 150
Website

Re: Localtime is wrong

Yeah, that didn't work.


I always roll 20s on my disbelieve checks.
You better believe it.

Offline

#12 2006-12-13 23:06:55

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: Localtime is wrong

Sure, set the BIOS/CMOS time to UTC if you don't dual-boot... and don't use LiveCDs, ever.

;]


1000

Offline

#13 2006-12-14 00:19:16

kamagurka
Member
From: Munich, Germany
Registered: 2006-02-20
Posts: 150
Website

Re: Localtime is wrong

If I have my BIOS clock set to localtime (which is what I think the above commads do) and specified localtime in the rc.conf, shouldn't it work?


I always roll 20s on my disbelieve checks.
You better believe it.

Offline

#14 2006-12-14 02:43:12

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: Localtime is wrong

Sorry, that was in response to MrElendig.
If you enter your BIOS and the date there is in sync with your wristwatch (wallclock etc.) and "localtime" is in rc.conf and your timezone is correct, then yes.


1000

Offline

#15 2006-12-14 04:11:15

kamagurka
Member
From: Munich, Germany
Registered: 2006-02-20
Posts: 150
Website

Re: Localtime is wrong

Yeah, it doesn't, though. Is there any way I can check the BIOS clock to make sure the command I used actually set it correctly? Also, when I change the rc.conf, is there anything I need to do to have the system reconsider it or is that done when I call ntpdate?


I always roll 20s on my disbelieve checks.
You better believe it.

Offline

#16 2006-12-14 13:33:23

Romashka
Forum Fellow
Registered: 2005-12-07
Posts: 1,054

Re: Localtime is wrong

kamagurka, are you sure you have set your TIMEZONE correctly? What value it has?


to live is to die

Offline

#17 2006-12-14 15:48:24

kamagurka
Member
From: Munich, Germany
Registered: 2006-02-20
Posts: 150
Website

Re: Localtime is wrong

At the moment it says

HARDWARECLOCK="localtime"

I tried UTC as well, but no dice.


I always roll 20s on my disbelieve checks.
You better believe it.

Offline

#18 2006-12-14 15:52:32

Romashka
Forum Fellow
Registered: 2005-12-07
Posts: 1,054

Re: Localtime is wrong

kamagurka wrote:

At the moment it says

HARDWARECLOCK="localtime"

I tried UTC as well, but no dice.

I have also

TIMEZONE="Europe/Kiev"

wink


to live is to die

Offline

#19 2006-12-14 16:55:53

kamagurka
Member
From: Munich, Germany
Registered: 2006-02-20
Posts: 150
Website

Re: Localtime is wrong

Oh, maybe next time I'll actually read what you're writing before replying. Mine says

TIMEZONE="Europe/Berlin"

which is where I am at.


I always roll 20s on my disbelieve checks.
You better believe it.

Offline

#20 2006-12-14 20:08:06

veek
Member
Registered: 2006-03-10
Posts: 167

Re: Localtime is wrong

bjorn wrote:

pacman -Sf ntp; ntpdate ntp.uio.no; hwclock --sysyohc --localtime

I think bjorn meant: hwclock --systohc --localtime.

Offline

#21 2006-12-15 12:37:43

kamagurka
Member
From: Munich, Germany
Registered: 2006-02-20
Posts: 150
Website

Re: Localtime is wrong

Since I did what T-Dawg said (and he didn't make that typo), I should be fine. BUT I'M NOT. I'm seriously nearly crying now. My clock says it's 4:37, and it's about noon. My sleep cycle is all fucked.


I always roll 20s on my disbelieve checks.
You better believe it.

Offline

#22 2006-12-15 14:08:20

Snarkout
Member
Registered: 2005-11-13
Posts: 542

Re: Localtime is wrong

Did you set your system time with the date command first?


Unthinking respect for authority is the greatest enemy of truth.
-Albert Einstein

Offline

#23 2006-12-17 16:08:34

kamagurka
Member
From: Munich, Germany
Registered: 2006-02-20
Posts: 150
Website

Re: Localtime is wrong

Yes, I did exactly as T-Dawg commanded:
I set time and date with the date command, and then set my BIOS time to the time I just set with "hwclock --systohc --localtime".
And still, when I call ntpdate, it gets reset.


I always roll 20s on my disbelieve checks.
You better believe it.

Offline

#24 2006-12-17 16:58:05

Snarkout
Member
Registered: 2005-11-13
Posts: 542

Re: Localtime is wrong

That's weird - I've used this technique on litterally dozens of boxen.  I assume you've checked that you get the correct output at each step of the process.  Could you post the output of each step, followed by a check of each step, and finally where things go wrong?


Unthinking respect for authority is the greatest enemy of truth.
-Albert Einstein

Offline

#25 2006-12-17 17:19:49

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

Re: Localtime is wrong

in addition please post the output of

hwclock --show --localtime; date

Offline

Board footer

Powered by FluxBB