From d01ce7d8129122d88667b2baf4a6727cb819401e Mon Sep 17 00:00:00 2001 From: Viktar Lukashonak Date: Mon, 24 Jul 2023 10:16:38 +0300 Subject: [PATCH] Rewview changes. Signed-off-by: Viktar Lukashonak --- src/modules/clock.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/modules/clock.cpp b/src/modules/clock.cpp index b36b8258..15d0319b 100644 --- a/src/modules/clock.cpp +++ b/src/modules/clock.cpp @@ -24,8 +24,8 @@ waybar::modules::Clock::Clock(const std::string& id, const Json::Value& config) for (const auto& zone_name : config_["timezones"]) { if (!zone_name.isString()) continue; if (zone_name.asString().empty()) - // nullptr means that local time should be shown - time_zones_.push_back(nullptr); + // local time should be shown + time_zones_.push_back(date::current_zone()); else try { time_zones_.push_back(date::locate_zone(zone_name.asString())); @@ -46,7 +46,6 @@ waybar::modules::Clock::Clock(const std::string& id, const Json::Value& config) // If all timezones are parsed and no one is good if (!time_zones_.size()) { - // nullptr means that local time should be shown time_zones_.push_back(date::current_zone()); }