LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 02-23-2007, 09:27 AM   #1
kaplan71
Member
 
Registered: Nov 2003
Posts: 809

Rep: Reputation: 39
Problem Adjusting the System Time to


Hi there --

I am trying to adjust the system time on a Red Hat Fedora Core 2 system to reflect the timezone that it is in rather than UTC. The timezone in question is America/NewYork.

I have gone through the motions of adjusting the time via the GUI interface as well as through the setup menu and also making sure that the UTC option in both instances is NOT checked. The system runs ntp and I have confirmed that the /etc/ntp.conf as well as the /etc/ntp/ntpservers and /etc/ntp/step-tickers files have the appropriate server information in them. When I run the ntpq -p command, the output shows the system being in synch with the timeservers.

The problem is the following: Whenever I run the date command, the output reads a time that is inconsistent with the localtime, and it also has UTC as part of its output. The clock on the desktop menubar also shows the incorrect time.

I ran the hwclock command without any success, and even after I rebooted the system, went into the BIOS and modified the system clock to reflect the correct time, the problem was not resolved.

Has anyone seen this, and can tell me what else I need to do? Thanks.
 
Old 02-23-2007, 10:06 AM   #2
wmakowski
Member
 
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 25, 26, RHL 5.2
Posts: 560

Rep: Reputation: 56
The system clock can be adjusted using the hwclock command or through the BIOS. The clock on your computer is usually set to localtime or UTC. What you are seeing when running the date command is determined by the file /etc/localtime. Users can see their local time by setting the TZ environment variable. If this variable is not present it will use /etc/localtime to determine the default setting.

There are zoneinfo files located in the /usr/share/zoneinfo directory. These files allow a user in Moscow to see their local time even if they are logged in on a server in Washington, DC. They also automatically make adjustments for standard time or daylight savings time.

If you want the default on your system to be the local time in New York you can do one of two things. Copy the file /usr/share/zoneinfo/EST5EDT to /etc/localtime or make /etc/localtime a symbolic link pointing to /usr/share/zoneinfo/EST5EDT. I prefer the later because if your tzdata package gets updated you won't have to bother with any update to /etc/localtime.

Bill
 
  


Reply



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
System time problem. combilli Linux - Software 2 02-05-2007 11:37 AM
Adjusting toolchain problem (in temport system) ChrisScott Linux From Scratch 6 01-21-2007 09:26 AM
adjusting the time in debian Drayven Linux - General 5 04-16-2004 01:33 AM
adjusting time under RH trutnev Red Hat 1 03-28-2004 01:56 PM
TOTAL noob -> Difficult time adjusting to Linux no1sos Linux - Newbie 7 10-27-2003 05:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 03:26 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration