summaryrefslogtreecommitdiff
path: root/indra/newview/llstatusbar.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2025-11-24 17:10:03 +0200
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2025-11-24 18:48:16 +0200
commitf00a03b796dd667024dd0d931096cedd9554fcbe (patch)
tree4f5897dee7e44d85aec67294b83b052561bf23bf /indra/newview/llstatusbar.cpp
parent63f5221eb1828a8f22e54d35898046a94e70e777 (diff)
#5035 Fix missed am/pm switch
Diffstat (limited to 'indra/newview/llstatusbar.cpp')
-rw-r--r--indra/newview/llstatusbar.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llstatusbar.cpp b/indra/newview/llstatusbar.cpp
index 2727127633..08adb34c3e 100644
--- a/indra/newview/llstatusbar.cpp
+++ b/indra/newview/llstatusbar.cpp
@@ -305,7 +305,9 @@ void LLStatusBar::refresh()
time_t utc_time;
utc_time = time_corrected();
- std::string timeStr = getString("time");
+ static bool use_24h = gSavedSettings.getBOOL("Use24HourClock");
+ std::string timeStr = use_24h ? getString("time") : getString("time_ampm");
+
LLSD substitution;
substitution["datetime"] = (S32) utc_time;
LLStringUtil::format (timeStr, substitution);