aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/LLLoginService
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Services/LLLoginService')
-rw-r--r--OpenSim/Services/LLLoginService/LLLoginResponse.cs21
1 files changed, 20 insertions, 1 deletions
diff --git a/OpenSim/Services/LLLoginService/LLLoginResponse.cs b/OpenSim/Services/LLLoginService/LLLoginResponse.cs
index 079bcb1..e773321 100644
--- a/OpenSim/Services/LLLoginService/LLLoginResponse.cs
+++ b/OpenSim/Services/LLLoginService/LLLoginResponse.cs
@@ -355,7 +355,26 @@ namespace OpenSim.Services.LLLoginService
355 355
356 private void SetDefaultValues() 356 private void SetDefaultValues()
357 { 357 {
358 DST = TimeZone.CurrentTimeZone.IsDaylightSavingTime(DateTime.Now) ? "Y" : "N"; 358 TimeZoneInfo gridTimeZone;
359
360 try
361 {
362 // First try to fetch DST from Pacific Standard Time, because this is
363 // the one expected by the viewer. "US/Pacific" is the string to search
364 // on linux and mac, and should work also on Windows (to confirm)
365 gridTimeZone = TimeZoneInfo.FindSystemTimeZoneById("US/Pacific");
366 }
367 catch (Exception e)
368 {
369 m_log.WarnFormat(
370 "[TIMEZONE]: {0} Falling back to system time. System time should be set to Pacific Standard Time to provide the expected time",
371 e.Message);
372
373 gridTimeZone = TimeZoneInfo.Local;
374 }
375
376 DST = gridTimeZone.IsDaylightSavingTime(DateTime.Now) ? "Y" : "N";
377
359 StipendSinceLogin = "N"; 378 StipendSinceLogin = "N";
360 Gendered = "Y"; 379 Gendered = "Y";
361 EverLoggedIn = "Y"; 380 EverLoggedIn = "Y";