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 no longer displays longer format strings #3021

Closed
Flootersmm opened this issue Mar 17, 2024 · 12 comments
Closed

Clock no longer displays longer format strings #3021

Flootersmm opened this issue Mar 17, 2024 · 12 comments
Labels
bug Something isn't working clock inhibitor

Comments

@Flootersmm
Copy link

Flootersmm commented Mar 17, 2024

Waybar 0.10.0 with kernel 6.8.1-arch1-1 has just today started to not accept longer format strings and appears blank if I use anything longer than :%H:%M, such as including glyphs or further format specifiers. Adjust min/max-length does nothing.

In particular, I get no error messages.

The tooltip format string functions just fine. I made no changes and my clock more or less randomly broke.

Reverting to Waybar 0.9.24-3-x86-64 has solved this temporarily.

@github-actions github-actions bot added bug Something isn't working clock inhibitor labels Mar 17, 2024
@FelixJochems
Copy link

FelixJochems commented Mar 17, 2024

For me it only breaks with the glyphs I had in the formatting previously. Removing those brings back the time with the formatting I had set previously.

Did some more testing, putting the glyphs in the formatting options of other waybar modules works just fine so it is only the clock that has been broken.

@virtuallynaman
Copy link

For me it only breaks with the glyphs I had in the formatting previously. Removing those brings back the time with the formatting I had set previously.

Did some more testing, putting the glyphs in the formatting options of other waybar modules works just fine so it is only the clock that has been broken.

++ Same behaviour

@DamianRyse
Copy link

DamianRyse commented Mar 18, 2024

For me it only breaks with the glyphs I had in the formatting previously. Removing those brings back the time with the formatting I had set previously.

Did some more testing, putting the glyphs in the formatting options of other waybar modules works just fine so it is only the clock that has been broken.

I can confirm this issue. Had the same problem with the following format string: "format": "{: %H:%M %p  %a, %b %e}",

Error message:

2024-03-18 08:44:35.000] [error] clock: chrono format error: no '%' at start of chrono-specs

@GodGMN
Copy link

GodGMN commented Mar 18, 2024

Same issue there. I updated yesterday and my clock stopped showing, I haven't changed my configuration file for weeks.

This is my format string: "format": "{:󰥔 %R  %d/%m}",

This is the error message:

[error] clock: format error: invalid arg-id in format string

I want to add that my whole system date got resetted, it has never happened before. I don't know if another update in some other time related package broke it. It may be totally unrelated but I find it rather weird that I had two issues related with date the same day.

@M2rsh
Copy link

M2rsh commented Mar 18, 2024

Same here also updated yesterday
format: "format": "<b>{:󰥔 %H:%M 󰃭 %d/%m}</b>"
error message: [error] clock: chrono format error: no '%' at start of chrono-specs

but the clock doesnt even show up
image

@ordy
Copy link
Contributor

ordy commented Mar 18, 2024

@M2rsh that line works for me on 0.10 if you format it like this "format": "<b>󰥔{:%H:%M 󰃭 %d/%m}</b>" instead.

@M2rsh
Copy link

M2rsh commented Mar 18, 2024

󰥔{:%H:%M 󰃭 %d/%m}

image
it kinda works i just added a space <b>󰥔 {:%H:%M 󰃭 %d/%m}</b>" and it works perfectly thanks

@DamianRyse
Copy link

󰥔{:%H:%M 󰃭 %d/%m}

image it kinda works i just added a space <b>󰥔 {:%H:%M 󰃭 %d/%m}</b>" and it works perfectly thanks

This indeed works for me as well!

@virtuallynaman
Copy link

@M2rsh that line works for me on 0.10 if you format it like this "format": "<b>󰥔{:%H:%M 󰃭 %d/%m}</b>" instead.

thanks works with this format
"format": " {:%OI:%M %p}",
"format-alt": " {:%a, %d %b}"

@kabeleh
Copy link

kabeleh commented Mar 18, 2024

"format": "{: %I:%M %p  %a, %b %e}", sadly stopped working too.

@multisme
Copy link

Related to this
#2659
and this
fmtlib/fmt#3445
The documentation should be updated to reflect the changes.

bradynwalsh added a commit to bradynwalsh/nixos-config that referenced this issue Mar 19, 2024
Running into Alexays/Waybar#3021
Applying suggested workaround
@nebulosa2007
Copy link

Quick fix for my config is:

-  "format-alt": "{:Week %V of the %Y}"
+  "format-alt": "Week {:%V of the %Y}"

Just move all symbols or glyphs outside the brackets and it should start with {:%.....

tamirzb added a commit to tamirzb/dotfiles that referenced this issue Mar 30, 2024
I think they updated the library they use to parse the time format and
now it expects what's inside the {:} block to start with a %.

Reference:
Alexays/Waybar#3021
kenoh added a commit to kenoh/dotfiles that referenced this issue May 5, 2024
@Alexays Alexays closed this as completed May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working clock inhibitor
Projects
None yet
Development

No branches or pull requests