Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clock module doesn't change with system timezone change #3570

Open
ThatOneCalculator opened this issue Sep 6, 2024 · 27 comments
Open

Clock module doesn't change with system timezone change #3570

ThatOneCalculator opened this issue Sep 6, 2024 · 27 comments

Comments

@ThatOneCalculator
Copy link
Contributor

Right now, I'm in Argentina (ART timezone) coming from Los Angeles (PDT timezone). My system clock updated automatically -- when I'm in GNOME, the time shows correctly, the date command shows the time correctly, as well as tty-clock, swaylock, timedatectl, etc. However, Waybar's clock module is still stuck in my old timezone.

image

image

@pbosab
Copy link

pbosab commented Sep 6, 2024

happened to me too today, do you have testing repo enabled? if yes, the problem comes from "core-testing/tzdata" version 2024b-1
downgrading to 2024a-2 solved the issue with waybar for me.

@ThatOneCalculator
Copy link
Contributor Author

I don't have the testing repo enabled -- my version is 2024a-2.

@RedBlizard
Copy link

I have the same problem, also no testing repo installed just the regular package.

@eeelbrens
Copy link

well tzdata-2024b-1 was just released to core. and so I have the same issue with my waybar clock and I currently have no means of downgrade. this time it defaulted to UTC for me (down from a UTC+3 region)

@grgpw
Copy link

grgpw commented Sep 8, 2024

there's also an error/warning when starting waybar:

[2024-09-08 14:37:19.653] [warning] Timezone: Europe/Berlin. std::chrono::tzdb: cannot locate zone: Europe/Berlin

@RedBlizard
Copy link

If you need the older tzdata package well here you have ! just go to the letter T scroll all the way down and download the older package ! https://archive.archlinux.org/packages/

@ThatOneCalculator
Copy link
Contributor Author

Again, the older version doesn't work. I think this is a bug with waybar's implementation.

@samuelemusiani
Copy link

I also have this problem and if I try to set the timezone i get:

[2024-09-08 15:30:26.444] [warning] Timezone: Europe/Rome. std::chrono::tzdb: cannot locate zone: Europe/Rome

I hope for a fix :)

@eeelbrens
Copy link

eeelbrens commented Sep 8, 2024

there's also an error/warning when starting waybar:

[2024-09-08 14:37:19.653] [warning] Timezone: Europe/Berlin. std::chrono::tzdb: cannot locate zone: Europe/Berlin

strange... I don't get any timezone errors

@eeelbrens
Copy link

also downgrading my tzdata package did fix it for me

@alba4k
Copy link

alba4k commented Sep 8, 2024

I haven't moved a single meter, however...
immagine

@steveWang
Copy link

I believe this is a C++ standard library bug -- I filed an issue for libc++, and it seems that libstdc++ fixed the bug (but just haven't shipped a version containing the fix).

llvm/llvm-project#107779

@ThatOneCalculator
Copy link
Contributor Author

For now, should Waybar maybe switch to using the date command (or some library that uses it)?

@3ri4nG0ld
Copy link

It was literally driving me crazy, I thought I had something wrong with my configuration.
I hope they fix it soon, it's quite annoying to have a late time on the clock.

@bradrn
Copy link

bradrn commented Sep 9, 2024

I just updated Waybar and am also experiencing this issue. As suggested by @eeelbrens, downgrading tzdata has fixed it for now.

@ThatOneCalculator
Copy link
Contributor Author

And again, that doesn't work for everyone. Furthermore, downgrading system libraries generally isn't rhe best idea.

@bradrn
Copy link

bradrn commented Sep 9, 2024

Yes, I’m aware. I only wanted to document that this solution worked for me too.

@robertsbd
Copy link

Just commenting that I am also experiencing this issue as of yesterday, probably after running pacman -Syu in arch by the sounds of it.

@Kamiksss
Copy link

Kamiksss commented Sep 9, 2024

I've experienced this issue after one of the system updates. Downgrading tzdata to version 2024-a1 fixed the problem.

@eeelbrens
Copy link

even downgrading to 2024-a2 would fix it

@ThatOneCalculator
Copy link
Contributor Author

Obviously not a permanent or complete solution, but I've added this for now as a stopgap to my config:

	"custom/clock": {
		"format": " {}",
		"exec": "date +'%I:%M'",
		"interval": 1
	},

@VladP812
Copy link

VladP812 commented Sep 9, 2024

Thanks to tzdata devs, I'm 1 hour younger now.
My condolences to people living in UTC- time zones.

@krulf
Copy link

krulf commented Sep 10, 2024

Just wanted to chime in - downgrading tzdata makes me old again.

Thanks for your work in this!

@Magnitudexx
Copy link

Updated to tzdata 2024b-2 and i am happy to say it now works as expected

@adnanzareef
Copy link

Well, the latest gcc update fixed the issue on Arch Linux without tzdata downgrading.

@eeelbrens
Copy link

yeah I did check and update both packages and it's been fixed
@ThatOneCalculator I guess time to close that issue now

@ThatOneCalculator
Copy link
Contributor Author

ThatOneCalculator commented Sep 15, 2024

@eeelbrens I think you guys were having a different issue from me.

I'm currently on Waybar 0.11, tzdata 2024b-2, and I'm STILL getting the original timezone issue.

The current time is actually 3:33 PM (15:33).

image

This is NOT about it being at UTC -- this is about it being stuck in my old timezone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests