diff options
author | Vaxry <[email protected]> | 2024-05-10 23:41:32 +0100 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-05-10 23:41:32 +0100 |
commit | 6e594e44162ed5ad8fd9db3e552723e32169158a (patch) | |
tree | e1d75210c42a339d40fa98341d8d7d174a6763f8 /hyprpm | |
parent | 19186de11834df43494378478d2d3a374e2409ae (diff) | |
download | Hyprland-6e594e44162ed5ad8fd9db3e552723e32169158a.tar.gz Hyprland-6e594e44162ed5ad8fd9db3e552723e32169158a.zip |
hyprpm: force en_US locale for date calcs
ref #5994
Diffstat (limited to 'hyprpm')
-rw-r--r-- | hyprpm/src/core/PluginManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hyprpm/src/core/PluginManager.cpp b/hyprpm/src/core/PluginManager.cpp index 7b454d8d..8fa5a988 100644 --- a/hyprpm/src/core/PluginManager.cpp +++ b/hyprpm/src/core/PluginManager.cpp @@ -444,7 +444,7 @@ bool CPluginManager::updateHeaders(bool force) { // let us give a bit of leg-room for shallowing // due to timezones, etc. - const std::string SHALLOW_DATE = removeBeginEndSpacesTabs(HLVER.date).empty() ? "" : execAndGet("date --date='" + HLVER.date + " - 1 weeks' '+\%a \%b \%d \%H:\%M:\%S \%Y'"); + const std::string SHALLOW_DATE = removeBeginEndSpacesTabs(HLVER.date).empty() ? "" : execAndGet("LC_TIME=\"en_US.UTF-8\" date --date='" + HLVER.date + " - 1 weeks' '+\%a \%b \%d \%H:\%M:\%S \%Y'"); if (m_bVerbose) progress.printMessageAbove(std::string{Colors::BLUE} + "[v] " + Colors::RESET + "will shallow since: " + SHALLOW_DATE); |