Changing timezone

7 respuestas [Último envío]
Avron

I am a translator!

Desconectado/a
se unió: 08/18/2020

Just after changing the timezone using the date and time in the MATE control centre, the time displayed in the MATE panel is the time in the new timezone. For example, I change from Paris to Chicago, then the time becomes 10:35 instead of 17:35. However, a few minutes later, I see 17:42 and the configuration says it is the time in Chicago.

How to change the time zone so that the time displayed in the MATE panel is *real* time in the new timezone and it does not set the old time back, pretending it is the time in the new timezone?

prospero
Desconectado/a
se unió: 05/20/2022

I had to log out and back in for the new time zone to take effect on the Clock applet.

UPDATE: it appears that the new time zone gets updated only when the displayed time changes: next second if seconds are displayed on the Clock applet, next minute otherwise.

Avron

I am a translator!

Desconectado/a
se unió: 08/18/2020

With a right click in the clock applet, it says the time zone is Chicago, but it has kept the value of the time from Paris. If I try the date command in a terminal, I see exactly the same. It seems to have shifted the absolute time by 7h, so it is now completely wrong.

I logged in and out, no difference.

prospero
Desconectado/a
se unió: 05/20/2022

> With a right click in the clock applet, it says the time zone is...

It just occurred to me that you may be using the default ayatana-indicator-datetime clock, and not the Clock applet. They seem to behave different.

I am using the Clock applet instead.

prospero
Desconectado/a
se unió: 05/20/2022

In any case, I would first try to reset the time zone by running: sudo dpkg-reconfigure tzdata

and selecting my current time zone. You can then check how everything is set by running: timedatectl

Avron

I am a translator!

Desconectado/a
se unió: 08/18/2020

Thanks, these are useful commands.

By the way, "timedatectl set-time" considers the following argument to be a time in the local time zone. It is unfortunate that such a key piece of information is missing in the man page. I don't known whether there is a way to contribute to man pages, in my short career as software developer, writing good man pages was considered as important as writing good software.

Yes, I used the clock from the ayatana indicators.

I had a look at the clock applet. In the ayatana date time indicator, it is not possible to change the time, while in the clock applet it is, I am not sure why. However, on the window to modify the time, there is a button "Réglage de l'heure du système" (system time setting) which is misleading, it looks like it is going to open another window to change the system time as opposed to another kind of time. "Appliquer l'heure choisie" (apply the selected time) would be clearer.

The clock applet allows adding extra clocks, unlike the clock from the ayatana indicators, but the clock from the ayatana indicators shows events to come (not sure whether it is related to the fact that I am using evolution for the agenda), unlike the clock applet. Ideally, I would like all together :)

To not have the clock from ayatana indicators, did you remove the ayatana-indicator-datetime package or did you do something else?

prospero
Desconectado/a
se unió: 05/20/2022

I usually just swap the default "Indicator Applet Complete" for "Indicator Applet", the only noticeable difference between these two panel applets being the clock. Uninstalling the ayatana-indicator-datetime package also removes that clock, but swapping applets may be deemed the less radical option.

However, the only way to solve your dilemma I can think about is to keep the two clocks. It appears that evolution users are stuck with that indicator clock if they want to keep their calendar shortcut. You may add the Clock applet on a different panel and select "hide automatically" for that panel, if you only need to have a peek at world clocks from time to time, so to speak.

prospero
Desconectado/a
se unió: 05/20/2022

I have just found gworldclock. It still looks exactly the same as 10 years ago:

gwclock.jpg