diff --git a/indra/newview/llenvironment.cpp b/indra/newview/llenvironment.cpp
index 05bbfd70d63d61ac08a0d7b8eba80fdf4e55c94e..6bc7b8bf25b60028a48bc737207cc417da1ef2f9 100644
--- a/indra/newview/llenvironment.cpp
+++ b/indra/newview/llenvironment.cpp
@@ -1441,7 +1441,7 @@ LLEnvironment::EnvironmentInfo::ptr_t LLEnvironment::EnvironmentInfo::extract(LL
         {
             for (S32 index = 0; index < pinfo->mNameList.size(); ++index)
             {
-                pinfo->mNameList[index] = daynames[index];
+                pinfo->mNameList[index] = daynames[index].asString();
             }
         }
         else if (daynames.isString())