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 showing full time stamp #2391

Closed
VictorGasnikov opened this issue Aug 8, 2023 · 2 comments
Closed

Clock showing full time stamp #2391

VictorGasnikov opened this issue Aug 8, 2023 · 2 comments

Comments

@VictorGasnikov
Copy link

Since the last update, %S started showing seconds and nanoseconds at the same time.

image

My original config:

 "clock": {
     "tooltip-format": "<tt><small>{calendar}</small></tt>",
     "format-alt": "{:%Y-%m-%d}",
     "format": "{:%Y-%m-%d %H:%M:%S}",
     "interval": 1
 },

Which did not have this issue before the update.
Could you please fix it or tell me how to change the config to fix it?

@GalaxySnail
Copy link

It seems to be because something changed in fmt 10.0: https://github.com/fmtlib/fmt/releases/tag/10.0.0

  • Implemented formatting of subseconds. For example (godbolt):
#include <fmt/chrono.h>

int main() {
  // prints 01.234567
  fmt::print("{:%S}\n", std::chrono::microseconds(1234567));
}

Thanks patrickroocks (Patrick Roocks) phprus (Vladislav Shchapov), BRevzin (Barry Revzin).

  • Added precision support to %S. Thanks SappyJoy (Stepan Ponomaryov)

@LukashonakV
Copy link
Contributor

See #2378, #2386 and please close the issue

@Alexays Alexays closed this as completed Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants