Skip to content

Commit

Permalink
Merge pull request #2840 from m-bdf/clock-tz-changes
Browse files Browse the repository at this point in the history
clock: fix construction with calendar.format.today
  • Loading branch information
Alexays authored Jan 17, 2024
2 parents 392f83e + 4f0fbab commit 6e12f81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/clock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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, "{}"});
Expand Down

0 comments on commit 6e12f81

Please sign in to comment.