gnome-shell-extension-timezone
gnome-shell-extension-timezone copied to clipboard
Correct times; incorrect offsets
The extension displays the correct time for each foreign city, but it displays an offset that is incorrect by 2 hours.
Example
Let's say I'm in Germany, and I have a coworker in New York and a coworker in Chicago.
That means New York is 6 hours behind and Chicago is 7 hours behind. So if it's 20:00 in Germany, I'd expect the header in the extension to look like "14:00 NEW YORK -06:00" and "13:00 CHICAGO -07:00".
However, what I see in this situation is "14:00 NEW YORK -04:00" and "13:00 CHICAGO -05:00". The times display correctly, but the offsets are incorrect by 2 hours.
- Pop!_OS 21.04
- automatic date & time is turned on
- automatic time zone is turned on
- time format is 24-hour
That "offset" means the UTC timezone. For example, New York is UTC-4 as of today.
Ah, sorry. Initially, I thought it might be that, but I unconvinced myself when I tried to do the math. 🤦♂️ I guess I didn't take various daylight savings into account.
I think the time format threw me - I'm used to it being written UTC-4 or GMT-4, instead of -04:00
Thanks for your time!