summaryrefslogtreecommitdiff
path: root/indra/llcommon/lldate.cpp
diff options
context:
space:
mode:
authorRichard Linden <none@none>2010-08-12 09:53:17 -0700
committerRichard Linden <none@none>2010-08-12 09:53:17 -0700
commit402e2a181831d30a6a2586fd4b0641ba66da99be (patch)
tree335f57714bbc00510ede9e60c3d363722ef6ee43 /indra/llcommon/lldate.cpp
parentbe50a053ed4ae7d0b15fc20f1c6ca0973c56ffd9 (diff)
parent4e8c33e7252d38d00b5606e1960aa520c75e0227 (diff)
merge
Diffstat (limited to 'indra/llcommon/lldate.cpp')
-rw-r--r--indra/llcommon/lldate.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/llcommon/lldate.cpp b/indra/llcommon/lldate.cpp
index a7ef28b431..04583cdd4a 100644
--- a/indra/llcommon/lldate.cpp
+++ b/indra/llcommon/lldate.cpp
@@ -121,7 +121,12 @@ std::string LLDate::toHTTPDateString (tm * gmt, std::string fmt)
// use strftime() as it appears to be faster than std::time_put
char buffer[128];
strftime(buffer, 128, fmt.c_str(), gmt);
- return std::string(buffer);
+ std::string res(buffer);
+#if LL_WINDOWS
+ // Convert from locale-dependant charset to UTF-8 (EXT-8524).
+ res = ll_convert_string_to_utf8_string(res);
+#endif
+ return res;
}
void LLDate::toStream(std::ostream& s) const