Skip to content

Commit

Permalink
Fix: Removed dependency on locales being installed (#2227)
Browse files Browse the repository at this point in the history
  • Loading branch information
easymoney322 authored Dec 9, 2024
1 parent 3e944d2 commit 99e8162
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,6 @@ jobs:
sudo apt-get install -y libjsoncpp-dev uuid-dev libssl-dev zlib1g-dev libsqlite3-dev
sudo apt-get install -y ninja-build libbrotli-dev
sudo apt-get install -y libspdlog-dev
- name: Install and update locales
run: |
sudo apt-get install -y locales
sudo locale-gen en_US && sudo locale-gen en_US.UTF-8
sudo update-locale LC_ALL=en_US.UTF-8
- name: Install postgresql
run: |
Expand Down
2 changes: 1 addition & 1 deletion lib/src/Utilities.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1042,7 +1042,7 @@ void dateToCustomFormattedString(const std::string &fmtStr,
time_t seconds = static_cast<time_t>(nowSecond);
struct tm tm_LValue = date.tmStruct();
std::stringstream Out;
Out.imbue(std::locale{"en_US"});
Out.imbue(std::locale{"C"});
Out << std::put_time(&tm_LValue, fmtStr.c_str());
str = Out.str();
}
Expand Down

0 comments on commit 99e8162

Please sign in to comment.