aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/LLLoginService/LLLoginResponse.cs
diff options
context:
space:
mode:
authorMelanie2012-04-24 21:30:12 +0100
committerMelanie2012-04-24 21:30:12 +0100
commitc5520dc83fbbab83bd341b77f7b137443988b0fc (patch)
tree92596941f74061d88bea7d65b18066994245c44d /OpenSim/Services/LLLoginService/LLLoginResponse.cs
parentMerge branch 'master' of ssh://melanie@3dhosting.de/var/git/careminster into ... (diff)
parentFixed problem with MySQL: it was possible for one thread to use an incomplete... (diff)
downloadopensim-SC_OLD-c5520dc83fbbab83bd341b77f7b137443988b0fc.zip
opensim-SC_OLD-c5520dc83fbbab83bd341b77f7b137443988b0fc.tar.gz
opensim-SC_OLD-c5520dc83fbbab83bd341b77f7b137443988b0fc.tar.bz2
opensim-SC_OLD-c5520dc83fbbab83bd341b77f7b137443988b0fc.tar.xz
Merge branch 'master' into careminster
Conflicts: OpenSim/Region/CoreModules/World/Warp3DMap/MapImageModule.cs OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
Diffstat (limited to 'OpenSim/Services/LLLoginService/LLLoginResponse.cs')
-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";