aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/LLLoginService
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-04-24 20:30:19 +0100
committerJustin Clark-Casey (justincc)2012-04-24 20:30:19 +0100
commitcbe889e10bc06f0a3e31b4094c88bf022635dff9 (patch)
tree781757098c0e6fac50f292341db7c9e916c6ccfc /OpenSim/Services/LLLoginService
parentDST settings to match client default Pacific Time (mantis #5972) (diff)
downloadopensim-SC_OLD-cbe889e10bc06f0a3e31b4094c88bf022635dff9.zip
opensim-SC_OLD-cbe889e10bc06f0a3e31b4094c88bf022635dff9.tar.gz
opensim-SC_OLD-cbe889e10bc06f0a3e31b4094c88bf022635dff9.tar.bz2
opensim-SC_OLD-cbe889e10bc06f0a3e31b4094c88bf022635dff9.tar.xz
minor: formatting changes to top of LLLoginResponse.SetDefaultValues(), chiefly some break up of the long line.
Diffstat (limited to 'OpenSim/Services/LLLoginService')
-rw-r--r--OpenSim/Services/LLLoginService/LLLoginResponse.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Services/LLLoginService/LLLoginResponse.cs b/OpenSim/Services/LLLoginService/LLLoginResponse.cs
index 8fdcf4e..10a44ed 100644
--- a/OpenSim/Services/LLLoginService/LLLoginResponse.cs
+++ b/OpenSim/Services/LLLoginService/LLLoginResponse.cs
@@ -350,6 +350,7 @@ namespace OpenSim.Services.LLLoginService
350 private void SetDefaultValues() 350 private void SetDefaultValues()
351 { 351 {
352 TimeZoneInfo gridTimeZone; 352 TimeZoneInfo gridTimeZone;
353
353 try 354 try
354 { 355 {
355 // First try to fetch DST from Pacific Standard Time, because this is 356 // First try to fetch DST from Pacific Standard Time, because this is
@@ -359,9 +360,13 @@ namespace OpenSim.Services.LLLoginService
359 } 360 }
360 catch (Exception e) 361 catch (Exception e)
361 { 362 {
362 m_log.WarnFormat("[TIMEZONE]: {0} Falling back to system time. System time should be set to Pacific Standard Time to provide the expected time", e.Message); 363 m_log.WarnFormat(
364 "[TIMEZONE]: {0} Falling back to system time. System time should be set to Pacific Standard Time to provide the expected time",
365 e.Message);
366
363 gridTimeZone = TimeZoneInfo.Local; 367 gridTimeZone = TimeZoneInfo.Local;
364 } 368 }
369
365 DST = gridTimeZone.IsDaylightSavingTime(DateTime.Now) ? "Y" : "N"; 370 DST = gridTimeZone.IsDaylightSavingTime(DateTime.Now) ? "Y" : "N";
366 371
367 StipendSinceLogin = "N"; 372 StipendSinceLogin = "N";