You are not logged in.

#1 2012-07-31 20:10:46

b9anders
Member
Registered: 2007-11-07
Posts: 691

[SOLVED] /etc/localtime is a bloody mess

another "migration from rc.conf" support ticket here.  I what the proper format to use for /etc/localtime is. I'd just want it set to "Europe/Copenhagen". Looking at /etc/localtime doesn't help:

# cat  /etc/localtime
TZif2	`վCWpKͩ΢Cϒ4Ђ%r$y^Gɐ׿ΗMD3#ܐ͐㯐ӠÑ| lr!\c"LT#<E$,6%'&
                                                                                                                                                     'C'4(%)*+,-ڐ.ː/t0d1]2r3=4R562x688a9v:C;X<_=:>A?@f#A9BFCdD%ECFɐG#GIIJKL̿MNOnnPQWRleS7lTLGUNV,)V0XFXY(Z[
\]^_`_a}b?c]̐de=gg藐hriyjTk[lqm=nSohp5qQ<rfs1tEuv/vxxyِz{λ|}~y   CESTCETTZiiϴq
                                         4`վCWpKͩ΢Cϒ4Ђ%r$y^Gɐ׿ΗMD3#ܐ͐㯐ӠÑ| lr!\c"LT#<E$,6%'&
                           'C'4(%)*+,-ڐ.ː/t0d1]2r3=4R562x688a9v:C;X<_=:>A?@f#A9BFCdD%ECFɐG#GIIJKL̿MNOnnPQWRleS7lTLGUNV,)V0XFXY(Z[
\]^_`_a}b?c]̐de=gg藐hriyjTk[lqm=nSohp5qQ<rfs1tEuv/vxxyِz{λ|}~y
                                                                                                                                                                                                                   
                                                                                                                                                                                                                    LMTCMTCESTCET
CET-1CEST,M3.5.0,M10.5.0/3

It even gave me a small system beeb for that print. I am assuming this is all wrong and should be replaced altogether with something else that's actually legible. How should /etc/localtime look?

Last edited by b9anders (2012-08-01 09:29:58)

Offline

#2 2012-07-31 20:18:22

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: [SOLVED] /etc/localtime is a bloody mess

Please run

file /etc/localtime

and you'll see the reason for this output smile

Last edited by Army (2012-07-31 20:19:29)

Offline

#3 2012-07-31 20:18:34

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [SOLVED] /etc/localtime is a bloody mess

Last I checked, /etc/localtime is supposed to be a symlink to the appropriate file in /usr/share/zoneinfo/

When I cat mine (linked to America/New_York) I get garbage too.  And file recognizes it as "timezone data" so I guess everything's all right.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#4 2012-07-31 20:19:21

KimTjik
Member
From: Sweden
Registered: 2007-08-22
Posts: 715

Re: [SOLVED] /etc/localtime is a bloody mess

I don't understand what you expected to see since it's a symlink to /usr/share/zoneinfo/ZONE/COUNTRY.

(I was obviously slow to post)

Last edited by KimTjik (2012-07-31 20:20:09)

Offline

#5 2012-07-31 20:20:21

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: [SOLVED] /etc/localtime is a bloody mess

Damn spoiler alerts! wink

Offline

#6 2012-07-31 20:24:48

b9anders
Member
Registered: 2007-11-07
Posts: 691

Re: [SOLVED] /etc/localtime is a bloody mess

Army wrote:

Please run

file /etc/localtime

and you'll see the reason for this output smile

ah!

/etc/localtime: symbolic link to `/usr/share/zoneinfo/Europe/Copenhagen'

All is well then. Thanks. smile

Offline

#7 2012-07-31 21:45:03

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] /etc/localtime is a bloody mess

Please remember to mark the thread as solved :-)

Offline

#8 2012-07-31 21:47:44

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [SOLVED] /etc/localtime is a bloody mess

Is it really solved though?  It's still a bloody mess, after all tongue


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#9 2012-07-31 21:55:57

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] /etc/localtime is a bloody mess

I doubt OP expected it to be full of stars :-)

Next time thought, he might want to open a thread in a more relevant section of the forum :-P

Offline

Board footer

Powered by FluxBB