Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 23rd March 2012, 05:18 PM
elferozlobo Offline
Registered User
 
Join Date: May 2011
Location: Lima, Perú
Posts: 10
linuxfirefox
System time trouble

I have Fedora 15 desktop with gnome O. S. a year ago, but recently I realize that the system clock doesn't work fine: every system boot it adds 5 hours to the right local time, so I have to type: "#hwclock --hctosys" in order it shows the right time. Time zone clock and bios clock are always ok, but how can I tell Fedora to show the exact local time?.......Thanks
Reply With Quote
  #2  
Old 23rd March 2012, 06:55 PM
Gareth Jones Offline
Official Gnome 3 Sales Rep. (and Adminstrator)
 
Join Date: Jul 2011
Location: Leamington Spa, UK
Age: 30
Posts: 1,695
linuxfirefox
Re: System time trouble

Is your time-zone set correctly (click on the GNOME clock, then "Date and Time Settings")? Also in the same window, is "Network Time" enabled?

Is your BIOS clock set to local time or to UTC? Linux generally uses UTC internally, and expects the hardware clock to be in UTC unless told otherwise. Local-time BIOS clock is supported too for compatibility with Windows in dual boot situations though. Run system-config-date for a more detailed configuration window which includes the BIOS clock option (last option in the second tab). Use UTC if Linux is the only OS installed, otherwise local-time.
Reply With Quote
  #3  
Old 24th March 2012, 05:41 PM
elferozlobo Offline
Registered User
 
Join Date: May 2011
Location: Lima, Perú
Posts: 10
linuxfirefox
Re: System time trouble

Gnome desktop shows the real system time that it's set, but when I open "Date and Time Settings" box it shows the UTC time (system time+5). If I adjust that clock to local time, system time goes down 5 hours. "Network Time" is disable.
Reply With Quote
  #4  
Old 24th March 2012, 06:30 PM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,300
linuxfirefox
Re: System time trouble

Quote:
Originally Posted by elferozlobo View Post
I have Fedora 15 desktop with gnome O. S. a year ago, but recently I realize that the system clock doesn't work fine: every system boot it adds 5 hours to the right local time, so I have to type: "#hwclock --hctosys" in order it shows the right time. Time zone clock and bios clock are always ok, but how can I tell Fedora to show the exact local time?.......Thanks
Using the command you've shown ... "hwclock --hctosys" is NOT the correct solution.

Post the output of these ...
cat /etc/adjtime /etc/sysconfig/clock

Briefly ...
The Linux SYSTEM time (software clock) in the OS should always be UTC. ALWAYS.
For Linux it is preferred that the hwclock is also UTC, but Windoze also understands local time on the HWclock, so long as /etc/adjtime reflects the setting.

We can adjust the software clock from the files above. The USERSPACE notion of time is based on the OS/software clock and the /etc/localtime file(binary, should match /etc/sysconfig/clock.

Quote:
Originally Posted by elferozlobo View Post
Gnome desktop shows the real system time that it's set
"real system time" is a meaningless term. There are four possibly different times involved. The hwclock, the softwareclock, the userspace clock and the wall-clock time. All can be different. I have NO IDEA what you mean by "real system time".

Quote:
, but when I open "Date and Time Settings" box it shows the UTC time (system time+5).
So the user spacetime is identical to UTC.

Quote:
Time zone clock and bios clock are always ok
What is a "time-zone clock" ? I have no idea what you mean.
By "bios clock" I assume you mean the hwclock. What does "ok" mean - does it mean it matches UTC or local wallclock time or something else ?
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe

Last edited by stevea; 25th March 2012 at 04:53 AM.
Reply With Quote
  #5  
Old 26th March 2012, 05:54 PM
Gareth Jones Offline
Official Gnome 3 Sales Rep. (and Adminstrator)
 
Join Date: Jul 2011
Location: Leamington Spa, UK
Age: 30
Posts: 1,695
linuxfirefox
Re: System time trouble

Do you boot Windows too, or only Linux?

Run system-config-time. Then:
1) go to the Timezone tab, and set your time-zone correctly if it isn't already;
2) if you only use Linux, set "System clock uses UTC" to on, otherwise off.

Reboot and go into BIOS. If you only use Linux, set the BIOS clock to UTC. Otherwise set it to local-time.

Boot Linux. If the time shown correctly, you can then enable network-time to synchronize the clock automatically over the Internet.
Reply With Quote
  #6  
Old 27th March 2012, 03:56 PM
Gareth Jones Offline
Official Gnome 3 Sales Rep. (and Adminstrator)
 
Join Date: Jul 2011
Location: Leamington Spa, UK
Age: 30
Posts: 1,695
linuxfirefox
Re: System time trouble

That should be system-config-date, not time! Sorry for the mistake.
Reply With Quote
Reply

Tags
time, trouble

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The system date and time is changing automatically, even after I set the correct time siva Using Fedora 8 31st July 2010 03:07 PM
system hangs from time to time..... chicom9 Using Fedora 2 4th December 2007 09:05 AM
How to set the System time /CMOS time using C ? kolichina_s_s Programming & Packaging 1 25th May 2006 01:11 PM
Trouble starting mysql for the first time adrian29uk Using Fedora 6 6th September 2005 11:04 PM
Trouble when starting up xserver for the first time korn69_inc Using Fedora 1 28th February 2004 01:21 AM


Current GMT-time: 02:06 (Monday, 20-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat