View previous topic :: View next topic |
Author |
Message |
jbryner n00b
Joined: 03 Sep 2004 Posts: 47 Location: pdx
|
Posted: Sun Feb 06, 2005 10:08 pm Post subject: problem with the date command--solved |
|
|
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 |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Sun Feb 06, 2005 10:11 pm Post subject: |
|
|
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 |
|
|
jbryner n00b
Joined: 03 Sep 2004 Posts: 47 Location: pdx
|
Posted: Sun Feb 06, 2005 11:08 pm Post subject: duh |
|
|
duh. Thanks.
How do I delete these posts again? |
|
Back to top |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Sun Feb 06, 2005 11:41 pm Post subject: |
|
|
Erm.. you don't - infamy forever! _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
|
Esben Apprentice
Joined: 29 Jun 2002 Posts: 244 Location: Copenhagen/Denmark
|
Posted: Thu Mar 31, 2005 2:24 pm Post subject: |
|
|
adaptr wrote: | Erm.. you don't - infamy forever! |
Good thing, too ---- I just made the same mistake _________________ 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 |
|
|
grx Apprentice
Joined: 19 Jan 2005 Posts: 173 Location: Maryland
|
Posted: Sat Apr 02, 2005 5:51 am Post subject: |
|
|
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 |
|
|
kimchi_sg Advocate
Joined: 26 Nov 2004 Posts: 2969
|
Posted: Sat Apr 02, 2005 6:43 am Post subject: |
|
|
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 |
|
|
racoontje Veteran
Joined: 19 Jul 2004 Posts: 1290
|
Posted: Sat Apr 02, 2005 10:26 am Post subject: |
|
|
BTW, GMT =! UK... GMT never changes. People in the UK still have BST (british summer time)... |
|
Back to top |
|
|
grx Apprentice
Joined: 19 Jan 2005 Posts: 173 Location: Maryland
|
Posted: Sat Apr 02, 2005 1:09 pm Post subject: |
|
|
I am dual booting with windows-- what should I do then? |
|
Back to top |
|
|
kimchi_sg Advocate
Joined: 26 Nov 2004 Posts: 2969
|
Posted: Sat Apr 02, 2005 1:10 pm Post subject: |
|
|
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 |
|
|
|