Skip to content

Commit 99e8162

Browse files
authored
Fix: Removed dependency on locales being installed (#2227)
1 parent 3e944d2 commit 99e8162

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

.github/workflows/cmake.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,6 @@ jobs:
173173
sudo apt-get install -y libjsoncpp-dev uuid-dev libssl-dev zlib1g-dev libsqlite3-dev
174174
sudo apt-get install -y ninja-build libbrotli-dev
175175
sudo apt-get install -y libspdlog-dev
176-
177-
- name: Install and update locales
178-
run: |
179-
sudo apt-get install -y locales
180-
sudo locale-gen en_US && sudo locale-gen en_US.UTF-8
181-
sudo update-locale LC_ALL=en_US.UTF-8
182176
183177
- name: Install postgresql
184178
run: |

lib/src/Utilities.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,7 @@ void dateToCustomFormattedString(const std::string &fmtStr,
10421042
time_t seconds = static_cast<time_t>(nowSecond);
10431043
struct tm tm_LValue = date.tmStruct();
10441044
std::stringstream Out;
1045-
Out.imbue(std::locale{"en_US"});
1045+
Out.imbue(std::locale{"C"});
10461046
Out << std::put_time(&tm_LValue, fmtStr.c_str());
10471047
str = Out.str();
10481048
}

0 commit comments

Comments
 (0)