Merge pull request #2840 from m-bdf/clock-tz-changes

clock: fix construction with calendar.format.today
This commit is contained in:
Alexis Rouillard 2024-01-17 13:44:28 +01:00 committed by GitHub
commit 6e12f81223
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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, "{}"});