aboutsummaryrefslogtreecommitdiff
path: root/src/utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.cpp')
-rw-r--r--src/utils.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/utils.cpp b/src/utils.cpp
index 0b586f4..e97b654 100644
--- a/src/utils.cpp
+++ b/src/utils.cpp
@@ -38,11 +38,11 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
gboolean
is_locale_12h()
{
- const char *t_fmt = nl_langinfo(T_FMT);
-
static const char *formats_24h[] = {"%H", "%R", "%T", "%OH", "%k"};
- for(const auto& format : formats_24h)
- if(strstr(t_fmt, format) != nullptr)
+ const auto t_fmt = nl_langinfo(T_FMT);
+
+ for (const auto& needle : formats_24h)
+ if (strstr(t_fmt, needle) != nullptr)
return false;
return true;