clock: fix construction with calendar.format.today

pull/2840/head
Maëlys Bras de fer 2024-01-17 13:30:32 +01:00
parent d343f616fc
commit 4f0fbaba8e
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ waybar::modules::Clock::Clock(const std::string& id, const Json::Value& config)
fmtMap_.insert({3, config_[kCldPlaceholder]["format"]["today"].asString()});
cldBaseDay_ =
year_month_day{
floor<days>(zoned_time{nullptr, system_clock::now()}.get_local_time())}
floor<days>(zoned_time{current_zone(), system_clock::now()}.get_local_time())}
.day();
} else
fmtMap_.insert({3, "{}"});