From bd0f6128d35dc0998da801e1292a27c23976cf19 Mon Sep 17 00:00:00 2001 From: Viktar Lukashonak Date: Fri, 13 May 2022 22:58:38 +0300 Subject: [PATCH] Revert "Waybar. Issue#1552. Calendar module, LC_TIME variable" This reverts commit 7b7ee41e13372fbbbb0fb5ab49cb95cbfd02577c. --- src/modules/clock.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/modules/clock.cpp b/src/modules/clock.cpp index 92061f53..3f2bf966 100644 --- a/src/modules/clock.cpp +++ b/src/modules/clock.cpp @@ -69,14 +69,7 @@ waybar::modules::Clock::Clock(const std::string& id, const Json::Value& config) if (config_["locale"].isString()) { locale_ = std::locale(config_["locale"].asString()); } else { - char* sysLocale{getenv("LC_TIME")}; - try { - locale_ = sysLocale ? std::locale(sysLocale) : std::locale(""); - } - catch(std::runtime_error const& localeErr) { - spdlog::warn(localeErr.what()); - locale_ = std::locale(); - } + locale_ = std::locale(""); } thread_ = [this] {