-
-
Notifications
You must be signed in to change notification settings - Fork 732
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 does not recognise fmt-10.0.0 format specifier #2363
Comments
Insofar as I’m aware, it shouldn’t matter, since the call to |
Clock module uses the exact fmt library. So.. it's definitely a strange case when you are able to use fmt10 ... but clock component shows unexpected results.. .OK, let me check... |
Probably related to this: Since my last system update (waybar and fmt were both updated) the decimal points of the seconds are printed, when just giving the format specifier Edit: |
@DigitalDragon64 Same, created an issue for it here: #2378. |
Hi @bradrn , I found your conversation fmtlib/fmt#3516 I'll do additional investigation. If it won't bring luck, I create an issue to upstream |
Except that exactly the same format string works when I directly use my version of |
@bradrn, Waybar uses date features like date::zoned_time. According cpp reference now it included into C++20 standard. I've just checked: fmt doesn't work with date::zoned_time. In the same time pure sys_time timpoint works well with fmt. Upd: created issue fmtlib/fmt#3572 |
Ah, that makes sense! Thanks for looking into this @LukashonakV. |
Version 10.0.0 of fmt introduced support for padding seconds, minutes and hours (so e.g. producing output like
1
rather than01
). I have tested that this works on my system by compiling and running the following C++ program:As expected, this prints
1
(with an initial space).However, when I try using the same format string with waybar, it simply produces the literal text
%_I
:My
clock
configuration is as follows:Note that the format string is exactly the same as that used in the C++ program above.
For reference, I am using EndeavourOS (so basically Arch Linux), with
waybar-0.9.20-2
andfmt-10.0.0-1
. My compositor is Sway, though I presume that makes no difference.The text was updated successfully, but these errors were encountered: