From cadcf412ec55b38ff10596958cd09dd6ef4dfd3a Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Mon, 8 Apr 2019 14:04:02 +0100 Subject: linux likes other tz names --- .../Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index 4a74c15..de7da0e 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs @@ -211,6 +211,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api { PSTTimeZone = null; } + if(PSTTimeZone == null) + { + try + { + PSTTimeZone = TimeZoneInfo.FindSystemTimeZoneById("America/Los_Angeles"); + } + catch + { + PSTTimeZone = null; + } + } } public override Object InitializeLifetimeService() -- cgit v1.1