View previous topic :: View next topic |
Author |
Message |
enternaL n00b
Joined: 18 Feb 2004 Posts: 61 Location: Darlington, SC
|
Posted: Sun Jan 28, 2007 7:42 am Post subject: Gnome displays incorrect time |
|
|
Gnome, as well as GDM, displays incorrect time (+6 hours off).
My HWClock is set to "UTC" time and /etc/conf.d/clock:CLOCK is set to "UTC"
Running 'date', it shows Sun Jan 28 02:38:02 EST 2007, which is correct. However, my Gnome clock shows 8:38AM.
The "Use UTC" in its preferences is unchecked, and when it is checked, it adjusts to 7:38AM, which is the correct UTC time.
I've tried copying /usr/share/zoneinfo/EST5EDT and America/New_York to /etc/localtime.
Any ideas what I'm doing wrong? |
|
Back to top |
|
|
KayZee Apprentice
Joined: 15 Oct 2003 Posts: 202 Location: Arlington, VA
|
Posted: Sun Jan 28, 2007 3:44 pm Post subject: |
|
|
What is the timezone setting?
Right click on the time and select "Adjust Date & Time"
Mine is set to
Timezone (unconfigured)
"Synchronize clock with Internet server" is checked off. (I am using NTP.) |
|
Back to top |
|
|
enternaL n00b
Joined: 18 Feb 2004 Posts: 61 Location: Darlington, SC
|
Posted: Sun Jan 28, 2007 6:12 pm Post subject: |
|
|
It's "America/New York", and there's no obvious way to unset it.
Code: |
$ echo $TZ
CET
$ date
Sun Jan 19:21:09 CET 2007
$ export TZ=EST
$ date
Sun Jan 13:21:17 EST 2007
|
I'm not sure what is setting it to CET, but the TZ has no effect on Gnome's clock, and as soon as I restart X, TZ changes from EST back to CET.
GDM is showing the right time now, but not Gnome. |
|
Back to top |
|
|
KayZee Apprentice
Joined: 15 Oct 2003 Posts: 202 Location: Arlington, VA
|
Posted: Sun Jan 28, 2007 8:18 pm Post subject: |
|
|
Is this from your .bashrc file? I don't set any timezone there. |
|
Back to top |
|
|
enternaL n00b
Joined: 18 Feb 2004 Posts: 61 Location: Darlington, SC
|
Posted: Sun Jan 28, 2007 8:21 pm Post subject: |
|
|
Apparently, this is my locale I'm using
Code: |
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_IE@euro
LC_CTYPE="de_DE@euro"
LC_NUMERIC="de_DE@euro"
LC_TIME="de_DE@euro"
LC_COLLATE="de_DE@euro"
LC_MONETARY="de_DE@euro"
LC_MESSAGES="de_DE@euro"
LC_PAPER="de_DE@euro"
LC_NAME="de_DE@euro"
LC_ADDRESS="de_DE@euro"
LC_TELEPHONE="de_DE@euro"
LC_MEASUREMENT="de_DE@euro"
LC_IDENTIFICATION="de_DE@euro"
LC_ALL=de_DE@euro
|
Even though in my /etc/env.d/02locale and /etc/locale.gen has no mention of de_DE@euro, only "en_US" and "en_US.UTF-8"
Any ideas why it's settings to de_DE and how to stop it?
Last edited by enternaL on Sun Jan 28, 2007 8:29 pm; edited 1 time in total |
|
Back to top |
|
|
enternaL n00b
Joined: 18 Feb 2004 Posts: 61 Location: Darlington, SC
|
Posted: Sun Jan 28, 2007 8:22 pm Post subject: |
|
|
KayZee wrote: | Is this from your .bashrc file? I don't set any timezone there. |
No, that's the output from my terminal. |
|
Back to top |
|
|
KayZee Apprentice
Joined: 15 Oct 2003 Posts: 202 Location: Arlington, VA
|
Posted: Sun Jan 28, 2007 8:59 pm Post subject: |
|
|
When I run the locale command, here is what I get.
Code: | locale
LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
|
You might try to see what options you have for changing values. |
|
Back to top |
|
|
massysett Apprentice
Joined: 06 Jan 2006 Posts: 296 Location: Silver Spring, Maryland USA
|
|
Back to top |
|
|
enternaL n00b
Joined: 18 Feb 2004 Posts: 61 Location: Darlington, SC
|
Posted: Mon Jan 29, 2007 4:00 pm Post subject: |
|
|
No matter what I set LC_ALL to, it gets reset every login, and I've done 'env-update' after every /etc/env.d/ change I made. I've also tried reinstalling glibc. Since I was already thinking about reinstalling before this, I ended up doing that. I wish I could've gotten a solution for future reference. Oh well. Thanks KayZee and massysett. |
|
Back to top |
|
|
|