You are not logged in.

#1 2010-07-06 14:17:57

spunkiie
Member
Registered: 2010-07-06
Posts: 15

[SOLVED] rc.conf (LOCALTIME has no effect)

Hello,

whenever i boot up Arch seens to ignore my LOCALTIME setting, look:

from /etc/rc.conf:

HARDWARECLOCK="localtime"
TIMEZONE="America/Sao_Paulo"


console# date
Ter Jul  6 11:15:18 UTC 2010

See ?  Till some days ago the correct setting were loading OK.

Dunno what happened.

any suggestion ?

TIA
Spunkiie

Last edited by spunkiie (2010-07-08 19:08:53)

Offline

#2 2010-07-06 17:58:37

Leonid.I
Member
From: Aethyr
Registered: 2009-03-22
Posts: 999

Re: [SOLVED] rc.conf (LOCALTIME has no effect)

Does this show the correct date/time

date "+%a %b %d %H:%M:%S %Z %Y"

EDIT: Also, see if this http://www.linuxquestions.org/questions … tc-620797/ helps.

Last edited by Leonid.I (2010-07-06 18:01:42)


Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd

Offline

#3 2010-07-06 19:52:56

spunkiie
Member
Registered: 2010-07-06
Posts: 15

Re: [SOLVED] rc.conf (LOCALTIME has no effect)

Leonid.I

Same result with your command:

date "+%a %b %d %H:%M:%S %Z %Y"
Ter Jul 06 16:46:10 UTC 2010

The topic sugested to copy the file instead of synlinking, so i did:

First, check the md5sum of the source file:
[root@host etc]# md5sum /usr/share/zoneinfo/America/Sao_Paulo
7613c2153980b60de4fb74f692d7c1eb  /usr/share/zoneinfo/America/Sao_Paulo


Okay, now copy and check md5sum again:
[root@host etc]# cp /usr/share/zoneinfo/America/Sao_Paulo localtime
[root@host etc]# md5sum /etc/localtime
7613c2153980b60de4fb74f692d7c1eb  /etc/localtime

Ok, the md5sum are the same, let's use 'date' again:
[root@host etc]# date
Ter Jul  6 16:49:55 UTC 2010

sad

any other idea ?
TIA

Offline

#4 2010-07-06 21:45:52

Mektub
Member
From: Lisbon /Portugal
Registered: 2008-01-02
Posts: 647

Re: [SOLVED] rc.conf (LOCALTIME has no effect)

spunkiie,

there are several reports in the forum about tzdata corruption.

Try reinstalling it.

Also, what is the output of date -u ?

Mektub


Follow me on twitter: https://twitter.com/johnbina

Offline

#5 2010-07-07 15:46:57

Leonid.I
Member
From: Aethyr
Registered: 2009-03-22
Posts: 999

Re: [SOLVED] rc.conf (LOCALTIME has no effect)

tzdata 2010j here -- date in EDT, as it's supposed to be.

@spunkiie
Hmm, try setting the env. variable TZ to "America/Sao_Paulo". If this does not help, reinstall tzdata.


Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd

Offline

#6 2010-07-08 19:08:25

spunkiie
Member
Registered: 2010-07-06
Posts: 15

Re: [SOLVED] rc.conf (LOCALTIME has no effect)

Just for clarification.

I have an untouched installation of Arch on a VirtualBox image.

The only thing i do is: pacman -Syu from time to time.

Nothing more. No configuration changes, no manual compilation of software, nothing.

This 'UTC" issue started a few days ago (can't exactly say after which update) but as stated above, i'm sure its an update problem.

Mektub:

Tried re-installing tzdata, same problem after.

Leonid.I:

exporting TZ="America/Sao_Paulo" worked. But let me still wondering which package broke things up.

Well, i'm putting [SOLVED] in this topic.

Thank you guys

Offline

#7 2010-07-08 20:20:07

Leonid.I
Member
From: Aethyr
Registered: 2009-03-22
Posts: 999

Re: [SOLVED] rc.conf (LOCALTIME has no effect)

I'm curious too. What is the host OS/VB settings? /bin/date belongs to coreutils, so you may try to downgrade. Just as a check, what happens, if you change the TIMEZONE to something else, e.g. America/Indiana/Indianapolis, which is EDT? Does it work?


Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd

Offline

Board footer

Powered by FluxBB