Linux - SoftwareThis 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.
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.
How do I change the time on XFCE's panel clock? An option to adjust the clock doesn't appear to be in a very obvious place, such as the clock's right-click menu or in the control panel. Oddly enough, I'm not finding anything with an internet search either,
Last edited by newbiesforever; 12-19-2014 at 10:27 PM.
The panel clock likely reflects the system clock, so this is about setting the system clock.
When I have to set the clock, I usually use the hwclock command as root to set the hardware clock time, then the hwclock -s command as root to bring the system clock in line with the hardware clock. I poked at this over a period of two weeks once when I was dual-booting Fedora and Slackware to get the two distros to both show the same time, but I finally got it figured out. There are, natch, many other ways to get to the same goal of coordinating the two clocks.
This link gives a pretty good intro to the process. However, I do not use the strings they show as their examples. I'm more likely to use something like this (from the hwclock man page):
Code:
hwclock --set --date="2011-08-14 16:45:05"
If I remember correctly (it's been a while since I've had to do this), this
Code:
hwclock --set --date="6:45:05"
will change the time without touching the date.
The timezone setting can also come into play, as Linux prefers to be set to UTC, then to use the timezone offset to display the time in local time.
I generally keep ntp turned on, but make sure it's pointed to benign servers.
This is one of those areas that, because of the variables involved (particularly timezones), can be much more complicated than it looks. In Windows World, the assumption is that everything is always set to local time, so that that variable is removed.
How do I change the time on XFCE's panel clock? An option to adjust the clock doesn't appear to be in a very obvious place, such as the clock's right-click menu or in the control panel. Oddly enough, I'm not finding anything with an internet search either,
That depends on your distro, which you really ought to indicate when you post a question. Desktop tools are for adjusting the desktop, rather than the system. In Salix, for example, you'd run clocksetup as root, but in the Red Hat family it would be system-config-date.
Last edited by DavidMcCann; 12-20-2014 at 11:13 AM.
In Windows World, the assumption is that everything is always set to local time, so that that variable is removed.
In Windows there is an option to set time to UTC actually (through registry).
Quote:
Originally Posted by veerain
Try to use ntpd to set time. It keeps UTC date and time in 100s of milliseconds accurate.
Before that the OP has to deal with timezones and BIOS time because Linux takes time from BIOS while booting. Of course you can set ntp to correct current time in system everytime after booting the OS, it will still be wrong in “system clock” (BIOS). So after setting correct time in Linux OP has to do something like
I'm willing to work with all of you to find a solution.
Nothing I've tried fixes the clock; so far.
frankbell: DavidMcCann & Mr. Alex I'll try what you have advised and get back to you tomorrow.
@newbiesforever:
I know how you feel it's annoying that the clock isn't right.
If you happen to understand the page I linked kindly share the right formula (%H (hour) %M (minute)%S (second) Maybe?
This is the XFCE Clock page that my Slackware takes me to but it is a confusing mess IMO.
How can anyone get the right combinations of the percent signs with the correct characters set and in the right order? http://docs.xfce.org/xfce/xfce4-panel/clock
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.