You are not logged in.

#1 2023-08-29 22:38:30

TrevCan
Member
Registered: 2021-10-08
Posts: 6

Web browsers show time off by one hour. Hardware & systemclock correct

Hello. I'm having some trouble with my web browsers. I didn't notice it until know, but I am unsure when this behaviour started to happen. My timezone is UTC-6 (CST Central Standard Time). My web browsers all show UTC-5 for some reason. I have confirmed that hwclock and timedatectl show the correct information to the timezone I want.

> sudo hwclock --utc
2023-08-29 16:13:38.557762-06:00

> timedatectl status
               Local time: Tue 2023-08-29 16:13:41 CST
           Universal time: Tue 2023-08-29 22:13:41 UTC
                 RTC time: Tue 2023-08-29 22:13:41
                Time zone: America/Mexico_City (CST, -0600)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no

As you can see, the time zone is correct, since Mexico City is indeed CST (UTC-6). I am unsure why this is happening. The website https://time.is shows my correct timezone, maybe because of my location based on my IP address. But other websites show the time as one more hour. https://webbrowsertools.com/timezone/ says I am in UTC-5, which is wrong. I am still unsure why this happens. This is the same for the web browsers chromium, surf, Brave, and firefox.

I've already tried setting again the timezone, both manually (with the symbolic link file) and with timedatectl set-timezone option.

Offline

#2 2023-08-29 23:09:33

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,727

Re: Web browsers show time off by one hour. Hardware & systemclock correct

Probably because they haven't updated their system for Mexico no longer doing Daylight Savings

Offline

#3 2023-08-29 23:19:42

TrevCan
Member
Registered: 2021-10-08
Posts: 6

Re: Web browsers show time off by one hour. Hardware & systemclock correct

Scimmia wrote:

Probably because they haven't updated their system for Mexico no longer doing Daylight Savings

That's what I thought to. I was hoping it would already be updated by now. I've just updated the pacakage tzdata to the latest version (2023c-2) and it is still the same. I'm thinking maybe a workaround is to just set it to GMT-6.

Offline

#4 2023-08-29 23:31:08

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,727

Re: Web browsers show time off by one hour. Hardware & systemclock correct

People will leave servers unupdated for years at a time. It's not an issue on your end, it's purely on theirs.

Specifically setting the offset might work, it might not. Depends on how they look things up.

Last edited by Scimmia (2023-08-29 23:31:56)

Offline

Board footer

Powered by FluxBB