LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-13-2014, 09:23 AM   #1
andrewm659
Member
 
Registered: Oct 2004
Distribution: CentOS/Fedora/OpenSuse
Posts: 61

Rep: Reputation: 1
Cool Timezone change in Fedora


I'm trying to figure out how to use chronyc in fedora 20. I'm new to this and done some searching but can't seem to come up with a definitive answer. How do you change the timezone from the CLI? Is it similar to doing NTP?


Thanks!
 
Old 08-14-2014, 01:32 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
How to set your timezone in several GNU/Linux distros (Red Hat based, Debian based, etc.).

NTP is used with a network connection which is always up, and chronyc/chronyd are used for intermittent network connections to keep the system clock synchronized with an attomic clock.
 
Old 08-14-2014, 01:40 PM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,962
Blog Entries: 4

Rep: Reputation: 4024Reputation: 4024Reputation: 4024Reputation: 4024Reputation: 4024Reputation: 4024Reputation: 4024Reputation: 4024Reputation: 4024Reputation: 4024Reputation: 4024
Actually, the strategy used by Linux/Unix is comparatively simple:
  • The hardware clock is normally set to "UTC (GMT)," and kept there by a time-server linked to NTP.
  • The /etc/localtime file is a symbolic link to a time-zone information file, located elsewhere, which corresponds to "the local time." This symbolic-link, therefore, is very easily changed.
  • As you can see, the system's master-clock value is never ambiguous and does not change. What can change, courtesy of the time-zone file, is the present interpretation of it. All other possible interpretations of that same time-value, throughout the world, are therefore "equally at-hand," and will always correspond.
  • Time-zone files also take care of things like "daylight-savings (sun ...) time, or not."
 
Old 08-14-2014, 09:22 PM   #4
Doug G
Member
 
Registered: Jul 2013
Posts: 749

Rep: Reputation: Disabled
You can use tzselect and hwclock from the command line
 
  


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
iptables behaviour on timezone change pradiptart Linux - Networking 1 06-07-2013 12:54 PM
[SOLVED] Cannot change timezone on Slackware 13.37 hoyortsetseg Slackware 10 10-29-2012 04:44 PM
Change Timezone from UTC to IST jeetvishav Red Hat 6 06-06-2012 09:36 PM
Change timezone DST r_etemaadi Linux - Newbie 5 05-01-2008 01:27 AM
Change timezone using date davholla Linux - General 16 11-09-2005 03:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:06 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