LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 07-16-2007, 04:49 AM   #1
LoveKing
LQ Newbie
 
Registered: Dec 2005
Location: Chennai, Tamil Nadu, India
Distribution: Knoppix, Fedora Core 5,6, Fedora 7
Posts: 27

Rep: Reputation: 15
Fedora 7: system time not showing properly.


I have a dual boot with windows xp sp2. I had installed Fedora 7 a week back. I am using KDE.

From the initial boot up the time is showing wrongly. I had set the time zone correctly to asia/Calcutta. still it is showing time wrongly. when i set it to local timezone the time is ahead by atleast 6 - 7 hours. To get the correct time i have to set the timezone to -1:00 gmt or to GMT.

The time is showing correctly in BIOS and also in windows. Where do i have to check out for correcting the problem?
 
Old 07-16-2007, 04:57 AM   #2
fatzeus
Member
 
Registered: Nov 2004
Location: Venice, Italy
Distribution: Gentoo
Posts: 44

Rep: Reputation: 15
I don't know where in Fedora, but probably you have set the clock time as localtime and not GMT.
You can set (maybe even in windows) if the time is stored in GMT or in your local timezone.
 
Old 07-16-2007, 04:59 AM   #3
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
The problem is probably because Linux uses GMT time + localtime hours when it calculates the local time (that means: clock is set to GMT, then you tell in which timezone you are, and Linux tells you the time at that timezone - changing timezones is a matter of changing your location, not changing the actual machine clock). Windows doesn't use this setup, if I'm right, it just has one time which is your localtime. Some distributions ask you during your setup (at least if they find there's windows on board) if you're using localtime or GMT, so they can set the clock correctly. If you answer the "wrong" answer, your localtime is miscalculated and shows some hours less or more than you intended..

Fix is to tell Linux to use the correct timezone, or just GMT, so that it calculates the time correctly. Some distributions have the timezone set in /etc/environment, others elsewhere.
 
Old 07-17-2007, 10:36 AM   #4
LoveKing
LQ Newbie
 
Registered: Dec 2005
Location: Chennai, Tamil Nadu, India
Distribution: Knoppix, Fedora Core 5,6, Fedora 7
Posts: 27

Original Poster
Rep: Reputation: 15
thanks for the reply fatzeus and b0uncer. Ok. i checked out the /etc/environment file and is was blank. then at terminal i executed cat /etc/timezone and it showed my timezone to be Asia/Calcutta. But still it is shows time ahead by 5:30 hours. so what u said is correct b0uncer. Linux takes up the system time and adds my timezone to it. since i am in india the timezone is +5:30 and so when it is 9 o clock in my wall clock here it shows 2:30 in the panel.
But that was not the case previously, in Fedora 6 and 5. there was no problem with time.

I tried to fiddle with the timezones and when i added UTC as additional timezone to be displayed. it displays the system time correctly.

when i place my mouse over the clock in kde it shows
Local Timezone 02:30, Wednesday 18 July 2007
UTC 21:00, Tuesday 17 Tuesday 2007.

Is there anyway: to keep my timezone settings and get correct time?
 
Old 07-17-2007, 11:14 AM   #5
LoveKing
LQ Newbie
 
Registered: Dec 2005
Location: Chennai, Tamil Nadu, India
Distribution: Knoppix, Fedora Core 5,6, Fedora 7
Posts: 27

Original Poster
Rep: Reputation: 15
ok i solved the problem, or so i think.
i went to /etc/sysconfig/clock and editied it and set the UTC to false(it was set to true when i opened it). and i got my system time correct with my timezone intact.
I found about this in this thread
http://lists.kde.org/?l=kde-linux&m=112007294015819

Hope this helps somebody else too who has similar probs like mine.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
hardware details are not showing properly in hwconfig naveen.surisetty Linux - General 3 06-22-2005 09:12 AM
gkrellm not showing contextual menus properly Aleksei Linux - Software 0 02-20-2005 12:03 AM
System won't boot properly knoppix doesn't initialize properly rodewan Linux - Software 0 01-23-2005 03:35 PM
phpMyAdmin is not showing properly edhan Linux - Newbie 1 09-09-2003 12:50 AM


All times are GMT -5. The time now is 05:16 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration