From 871f9a12696b4b9fe0e696cc64f987e73ba29dbb Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 18 Oct 2023 08:45:56 +0200 Subject: [PATCH] fix: revert clock --- src/modules/clock.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/clock.cpp b/src/modules/clock.cpp index 4c4bcc43..3d6b8919 100644 --- a/src/modules/clock.cpp +++ b/src/modules/clock.cpp @@ -175,8 +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.get_local_time().time_since_epoch())); + label_.set_markup(fmt::format(locale_, fmt::runtime(format_), now)); if (tooltipEnabled()) { const std::string tz_text{(is_timezoned_list_in_tooltip_) ? timezones_text(now.get_sys_time())