Merge pull request #2515 from chrisjshore/clock_fix

fix clock to work with fmt 10.x
pull/2585/head
Alexis Rouillard 2023-10-17 19:25:58 +02:00 committed by GitHub
commit 4d7eb3bd15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ auto waybar::modules::Clock::update() -> void {
tz, date::local_days(shiftedDay) +
(now.get_local_time() - date::floor<date::days>(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())