gnome-shell-extension-timezone icon indicating copy to clipboard operation
gnome-shell-extension-timezone copied to clipboard

Correct times; incorrect offsets

Open spencerflagg opened this issue 3 years ago • 2 comments

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

spencerflagg avatar Sep 23 '21 10:09 spencerflagg

That "offset" means the UTC timezone. For example, New York is UTC-4 as of today.

jwendell avatar Sep 23 '21 11:09 jwendell

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!

spencerflagg avatar Nov 08 '21 19:11 spencerflagg