From 14820e5d18f8ae44defb2873220af33d3515fddd Mon Sep 17 00:00:00 2001 From: Christopher Shore <113217432+chrisjshore@users.noreply.github.com> Date: Sun, 17 Sep 2023 16:32:19 -0400 Subject: [PATCH] fix clock to work with fmt 10.x --- src/modules/clock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/clock.cpp b/src/modules/clock.cpp index 3d6b8919..27b7da5e 100644 --- a/src/modules/clock.cpp +++ b/src/modules/clock.cpp @@ -175,7 +175,7 @@ auto waybar::modules::Clock::update() -> void { tz, date::local_days(shiftedDay) + (now.get_local_time() - date::floor(now.get_local_time())))}; - label_.set_markup(fmt::format(locale_, fmt::runtime(format_), now)); + label_.set_markup(fmt::format(locale_, fmt::runtime(format_), now.get_local_time().time_since_epoch())); if (tooltipEnabled()) { const std::string tz_text{(is_timezoned_list_in_tooltip_) ? timezones_text(now.get_sys_time())