Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gnome displays incorrect time
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
enternaL
n00b
n00b


Joined: 18 Feb 2004
Posts: 61
Location: Darlington, SC

PostPosted: Sun Jan 28, 2007 7:42 am    Post subject: Gnome displays incorrect time Reply with quote

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
View user's profile Send private message
KayZee
Apprentice
Apprentice


Joined: 15 Oct 2003
Posts: 202
Location: Arlington, VA

PostPosted: Sun Jan 28, 2007 3:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
enternaL
n00b
n00b


Joined: 18 Feb 2004
Posts: 61
Location: Darlington, SC

PostPosted: Sun Jan 28, 2007 6:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
KayZee
Apprentice
Apprentice


Joined: 15 Oct 2003
Posts: 202
Location: Arlington, VA

PostPosted: Sun Jan 28, 2007 8:18 pm    Post subject: Reply with quote

Is this from your .bashrc file? I don't set any timezone there.
Back to top
View user's profile Send private message
enternaL
n00b
n00b


Joined: 18 Feb 2004
Posts: 61
Location: Darlington, SC

PostPosted: Sun Jan 28, 2007 8:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
enternaL
n00b
n00b


Joined: 18 Feb 2004
Posts: 61
Location: Darlington, SC

PostPosted: Sun Jan 28, 2007 8:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
KayZee
Apprentice
Apprentice


Joined: 15 Oct 2003
Posts: 202
Location: Arlington, VA

PostPosted: Sun Jan 28, 2007 8:59 pm    Post subject: Reply with quote

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
Code:
man locale
to see what options you have for changing values.
Back to top
View user's profile Send private message
massysett
Apprentice
Apprentice


Joined: 06 Jan 2006
Posts: 296
Location: Silver Spring, Maryland USA

PostPosted: Mon Jan 29, 2007 3:37 pm    Post subject: Reply with quote

Try running an env-update, too.
_________________
Draft Windows-to-Linux Guide
Back to top
View user's profile Send private message
enternaL
n00b
n00b


Joined: 18 Feb 2004
Posts: 61
Location: Darlington, SC

PostPosted: Mon Jan 29, 2007 4:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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