diff options
Diffstat (limited to 'OpenSim/Services/LLLoginService')
-rw-r--r-- | OpenSim/Services/LLLoginService/LLLoginResponse.cs | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/OpenSim/Services/LLLoginService/LLLoginResponse.cs b/OpenSim/Services/LLLoginService/LLLoginResponse.cs index 079bcb1..2953cb5 100644 --- a/OpenSim/Services/LLLoginService/LLLoginResponse.cs +++ b/OpenSim/Services/LLLoginService/LLLoginResponse.cs | |||
@@ -355,7 +355,31 @@ 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 | // Disabled for now pending making timezone a config value, which can at some point have a default of | ||
361 | // a ; separated list of possible timezones. | ||
362 | // The problem here is that US/Pacific (or even the Olsen America/Los_Angeles) is not universal across | ||
363 | // windows, mac and various distributions of linux, introducing another element of consistency. | ||
364 | // The server operator needs to be able to control this setting | ||
365 | // try | ||
366 | // { | ||
367 | // // First try to fetch DST from Pacific Standard Time, because this is | ||
368 | // // the one expected by the viewer. "US/Pacific" is the string to search | ||
369 | // // on linux and mac, and should work also on Windows (to confirm) | ||
370 | // gridTimeZone = TimeZoneInfo.FindSystemTimeZoneById("US/Pacific"); | ||
371 | // } | ||
372 | // catch (Exception e) | ||
373 | // { | ||
374 | // m_log.WarnFormat( | ||
375 | // "[TIMEZONE]: {0} Falling back to system time. System time should be set to Pacific Standard Time to provide the expected time", | ||
376 | // e.Message); | ||
377 | |||
378 | gridTimeZone = TimeZoneInfo.Local; | ||
379 | // } | ||
380 | |||
381 | DST = gridTimeZone.IsDaylightSavingTime(DateTime.Now) ? "Y" : "N"; | ||
382 | |||
359 | StipendSinceLogin = "N"; | 383 | StipendSinceLogin = "N"; |
360 | Gendered = "Y"; | 384 | Gendered = "Y"; |
361 | EverLoggedIn = "Y"; | 385 | EverLoggedIn = "Y"; |