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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-13-2014, 09:23 AM
|
#1
|
Member
Registered: Oct 2004
Distribution: CentOS/Fedora/OpenSuse
Posts: 61
Rep:
|
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!
|
|
|
08-14-2014, 01:32 PM
|
#2
|
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908
|
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.
|
|
|
08-14-2014, 01:40 PM
|
#3
|
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,962
|
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."
|
|
|
08-14-2014, 09:22 PM
|
#4
|
Member
Registered: Jul 2013
Posts: 749
Rep:
|
You can use tzselect and hwclock from the command line
|
|
|
All times are GMT -5. The time now is 03:06 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|