Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problem with the date command--solved
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
jbryner
n00b
n00b


Joined: 03 Sep 2004
Posts: 47
Location: pdx

PostPosted: Sun Feb 06, 2005 10:08 pm    Post subject: problem with the date command--solved Reply with quote

Just re-installed my system after a crash and 'date' is the only thing left complaining:

Code:

bash-2.05b# date
Sun Feb  6 14:04:20 Local time zone must be set--see zic manual page 2005


My date epplet in enlightenment says the right time and I've got the link set:
Code:

bash-2.05b# ls -la /etc/timezone
lrwxrwxrwx  1 root root 27 Dec 26 10:48 /etc/timezone -> /usr/share/zoneinfo/PST8PDT


I've also got the rc.conf clock=local thing covered.

What could it be?


Last edited by jbryner on Sun Feb 06, 2005 11:09 pm; edited 2 times in total
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Sun Feb 06, 2005 10:11 pm    Post subject: Reply with quote

The link should be called localtime, not timezone.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
jbryner
n00b
n00b


Joined: 03 Sep 2004
Posts: 47
Location: pdx

PostPosted: Sun Feb 06, 2005 11:08 pm    Post subject: duh Reply with quote

:oops: duh. Thanks.

How do I delete these posts again? ;-)
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Sun Feb 06, 2005 11:41 pm    Post subject: Reply with quote

Erm.. you don't - infamy forever! ;-)
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
Esben
Apprentice
Apprentice


Joined: 29 Jun 2002
Posts: 244
Location: Copenhagen/Denmark

PostPosted: Thu Mar 31, 2005 2:24 pm    Post subject: Reply with quote

adaptr wrote:
Erm.. you don't - infamy forever! ;-)

Good thing, too ---- I just made the same mistake :oops:
_________________
regards, Esben
True trade is honest, but not merciful. Politics is dishonest, no matter how merciful... and war is neither honest nor merciful.... therefore, choose trade above politics, but politics above war.
Back to top
View user's profile Send private message
grx
Apprentice
Apprentice


Joined: 19 Jan 2005
Posts: 173
Location: Maryland

PostPosted: Sat Apr 02, 2005 5:51 am    Post subject: Reply with quote

I have a question about this still--
I've tried setting clock="local" in rc.conf, but it doesn't seem to change anything. My clock is still seven hours behind, because it thinks the BIOS time is UTC. What am I forgetting to do?
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2969

PostPosted: Sat Apr 02, 2005 6:43 am    Post subject: Reply with quote

Leave the BIOS time (the "hardware clock") in UTC. This is the normal way of doing things, unless you are dual-booting with Windows.
grx wrote:
What am I forgetting to do?

Perhaps you have forgotten to set the correct time zone symblic link. Use this command to find out what timezone file to link to (choose the one which is closest to your real timezone):
Code:
ls /usr/share/zoneinfo

Then link the timezone file to /etc/localtime. The following command assumes that you are in the GMT timezone (for those living in the UK):
Code:
ln -sf /usr/share/zoneinfo/GMT /etc/localtime

P.S. Please change the CLOCK variable in /etc/conf.d/clock back to "UTC", unless you dual-boot with Windows.
Back to top
View user's profile Send private message
racoontje
Veteran
Veteran


Joined: 19 Jul 2004
Posts: 1290

PostPosted: Sat Apr 02, 2005 10:26 am    Post subject: Reply with quote

BTW, GMT =! UK... GMT never changes. People in the UK still have BST (british summer time)...
Back to top
View user's profile Send private message
grx
Apprentice
Apprentice


Joined: 19 Jan 2005
Posts: 173
Location: Maryland

PostPosted: Sat Apr 02, 2005 1:09 pm    Post subject: Reply with quote

I am dual booting with windows-- what should I do then?
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2969

PostPosted: Sat Apr 02, 2005 1:10 pm    Post subject: Reply with quote

Then leave it at CLOCK="local" should be okay. But remember to create the proper /etc/localtime symlink.

Also, make sure your BIOS clock is actually set to local time in this case. ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum