I configured a PC for a friend who's been travelling and she asked me how to change the time on the computer. I suppose it makes would sense to do that as a user, not as an admin. Actually both make sense, but I'm looking for a user solution here.
I expected to find something in the parameter manager, but found nothing.
However, there seems to be something hidden in orage clock. Global time. It opens a really small window with a settings menu where a timezone can be picked.
Is this meant for that ? Is it documented ? Does it display a clock with a chosen timezone, or does it actually change the time user-wide for all applications ?
I admit my request is unclear as I mix up absolute time and local time, and I don't really know what the need exactly is, but I think you see the idea.
I heard that Gnome Shell clock util and KDE's clock address this, although I don't have the detail.
Bottom line, the issue is: I'd expect to find a clock setting in the parameter manager GUI and I didn't. Do I miss a package ? Is this normal ? Should we add something there ? What ? How ?
I know the timezone can be changed by adding
TZ='Europe/Berlin'; export TZ
(requires session restart)
The value could be obtained by the same tree view that is used in the timezone picker I was refering to earlier.
Any hint anyone ?
You can use the Orage Panel Plugin to display the time for a different timezone as a plugin that sits in the panel. It doesn't change the system time, just allows you to display the time from a different timezone. In fact, you can add multiple copies of this plugin to display time from differing timezones. (In fact, Orage has much more functionality than just time display. Here is a good document that shows more of its functionality).
If you want the user to change the system date/time, you can install "system-config-date" (should be in your distro's repositories) and setup sudo to allow the user to run this particular app without a password. This app will also add a date/time icon in the Settings Manager for easier access.
Hi, thank you for your answer.
So there is a way to display the time for any timezone in the Orage clock. And there is a system config GUI that can be added to the Settings Manager for users with appropriate credentials.
However, there is no way to set the timezone user-widely, which is what I understood "TZ='Europe/Berlin'; export TZ" does. I don't know if this is so useful, anyway. I can't think of many program actually using this.
Well, in fact, the alarms generated by Orage itself should probably be timed on this. Maybe they are relative to system time, but I believe they should depend on user timezone. I also use (and used to contribute to) gbirthday, which needs date/time as well.
However, there is no way to set the timezone user-widely, which is what I understood "TZ='Europe/Berlin'; export TZ" does.
Yes, system-config-date will do this for you. Or if you prefer to do it manually, you can change the file that /etc/localtime links to (or in the case of Ubuntu, it seems to be a straight copy, not a link). For example (Arch Linux, current timezone=Canada/Eastern):
sudo rm /etc/localtime sudo ln -s /usr/share/zoneinfo/Canada/Pacific /etc/localtime
...changes my timezone to Canada/Pacific and changes my system time.
Yes, but this is sytem-wide, not what I'd call "user-wide": all softwares for a given user.
It seems sensible to me that time/date settings be system-wide rather than on a per-user basis. After all, when people take their computer with them to a different time-zone, most of them (all, AFAIK, lol) take the whole computer - not just their particular "home" directory.
Btw, I'm surprised that things aren't advanced enough by this point for a computer to figure out local time automatically whenever it accesses the Internet. Also, since it's a linux OS, that a person cannot simply open a terminal and set the time with a command (such as time, settime, or similar)... But I'd expect even that to require an administrator password.
I am having a similar situation. The command line :
gives me the correct information including the correct timezone. If I generate a file and save, then listing the file shows the correct date/time.The problem is the Desktop panel date/time calendar can not be set. If I access the properties it seems to also be set. Even if I reboot, it doesn't display the time. It seems to be associated with the timezone, the minutes are correct but the hour is off by several hours. So, I am thinking something is not right with the panel clock display.
Last edited by eightbits (2015-09-24 20:32:19)
Did you check your BIOS(?) menu to see if the time settings in it are incorrect?
MDM: I will check that. But, I kind of doubt it because the system time, including the Time zone is correct. Also, if I generate a small simple file and then examine the file
in the terminal mode, the date/time matches the information displayed when I also look at the results of date. But, I will check the BIOS and post back later.
It does look like to me as associated with the setting of the clock that is located on panel, the one at the top right side of the screen.
MDM: I changed time in the BIOS but it changed the on screen clock= 00:44 . So I don't know ?
I had a related issue (time was off in that the hour part was incorrect) and checked my computer's time via the BIOS menu. It was off, too - but not by the same amount, lol. I set the computer's hardware(?) clock correctly and then... I'm afraid I don't remember what I did next.
Now that your time (and time zone / difference from UTC / DST status, if any/all are applicable) is set correctly in your "BIOS menu..."
Do you have ntpd running? If "yes," there could be an issue there (or with the online source that it queries for the time data). If "no," then...
Is your locale set correctly? If "yes," open a terminal window and type:
to see something like this:
Thu, 24 Sep 2015 22:47:21 -0400
which should tell you if your "time zone offset" needs adjusting.
You can then type:
to see a large list of options and arguments. I don't see small font very well any more, so I'll let you look through it to see if there is something that will help, lol. IDK if there is a "DST" setting in that list or not, but I know such data shows up in my update manager from time to time, so I assume that is taken into account, also.
MDM: Some good suggestions. last night , after looking at the BIOS, I noticed that it was showing the incorrect hour and i reset it or so I thought.
But the hour in the panel was at zero audit seems I could not change that. I am beginning to wonder if the CMOS battery is no good. I will get back soon.
[update] OK, I did more investigation. Changing the BIOS and booting does not change the panel clock display, it is five hours ahead of the time displayed in terminal date command.
If I go back into the BIOS, the time that I had set previously did not change. The BIOS displayed the same time as in the panel clock.
So that indicates an issue with changing/setting the BIOS time settings(?). If it were a battery issue, I would think that would not keep the previous setting.
Also, I don't know enough of the Linux actions that can directly write to th BIOS (?)/
Last edited by eightbits (2015-09-25 16:49:05)
so far I have been unable to resolve the issue.
Question: Could this be an issue if the CMOS battery is no good?
I will mark this as solved. I tried so many things I don't know exactly what I did , but now I can get the clock and it seems to be set correctly and displayed on the
panel. I will keep an eye on this post and try to use the limited knowledge to help anyone else if I feel it would be of any value.
MDM: I did search for the NTP and installed what I thought might work. I installed from synaptic.
Thank you much to those that responded.