diff options
author | McCabe Maxsted | 2010-07-14 00:59:31 -0700 |
---|---|---|
committer | McCabe Maxsted | 2010-07-15 02:10:13 -0700 |
commit | d5b33852e8cfe310bbc37c8a18f2e91a66a76bb0 (patch) | |
tree | 5f9ae1dc73d90bbafaac2acbcb1a14957ebcbd0d /linden/indra/newview/lllogchat.cpp | |
parent | Fixed #186: View > Web Browser broken (diff) | |
download | meta-impy-d5b33852e8cfe310bbc37c8a18f2e91a66a76bb0.zip meta-impy-d5b33852e8cfe310bbc37c8a18f2e91a66a76bb0.tar.gz meta-impy-d5b33852e8cfe310bbc37c8a18f2e91a66a76bb0.tar.bz2 meta-impy-d5b33852e8cfe310bbc37c8a18f2e91a66a76bb0.tar.xz |
Applied SNOW-629 Fix: Leading zero missing from hour portion of timestamp field in local chat history and log file. Patch by Ardy Lay
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/lllogchat.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linden/indra/newview/lllogchat.cpp b/linden/indra/newview/lllogchat.cpp index 62504d6..fb8a450 100644 --- a/linden/indra/newview/lllogchat.cpp +++ b/linden/indra/newview/lllogchat.cpp | |||
@@ -73,9 +73,9 @@ std::string LLLogChat::timestamp(bool withdate) | |||
73 | 73 | ||
74 | std::string text; | 74 | std::string text; |
75 | if (withdate) | 75 | if (withdate) |
76 | text = llformat("[%d/%02d/%02d %d:%02d] ", (timep->tm_year-100)+2000, timep->tm_mon+1, timep->tm_mday, timep->tm_hour, timep->tm_min); | 76 | text = llformat("[%d/%02d/%02d %02d:%02d] ", (timep->tm_year-100)+2000, timep->tm_mon+1, timep->tm_mday, timep->tm_hour, timep->tm_min); |
77 | else | 77 | else |
78 | text = llformat("[%d:%02d] ", timep->tm_hour, timep->tm_min); | 78 | text = llformat("[%02d:%02d] ", timep->tm_hour, timep->tm_min); |
79 | 79 | ||
80 | return text; | 80 | return text; |
81 | } | 81 | } |