diff options
author | UbitUmarov | 2016-08-01 00:58:16 +0100 |
---|---|---|
committer | UbitUmarov | 2016-08-01 00:58:16 +0100 |
commit | 708d2cd4136cc2505e97b5e6b8b1490562b1c771 (patch) | |
tree | e8bd0349f35a83b505fa3b8b716c3fb9cc90daf2 | |
parent | bug fix: use UtcNow in both places :) (diff) | |
download | opensim-SC_OLD-708d2cd4136cc2505e97b5e6b8b1490562b1c771.zip opensim-SC_OLD-708d2cd4136cc2505e97b5e6b8b1490562b1c771.tar.gz opensim-SC_OLD-708d2cd4136cc2505e97b5e6b8b1490562b1c771.tar.bz2 opensim-SC_OLD-708d2cd4136cc2505e97b5e6b8b1490562b1c771.tar.xz |
replace DateTime.Now by utcNow in another place
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs index 8aadec6..58f3dde 100644 --- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs +++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | |||
@@ -136,7 +136,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer | |||
136 | { | 136 | { |
137 | if (m_idCache.TryGetValue(pRegionHandle, out m_banUntil)) | 137 | if (m_idCache.TryGetValue(pRegionHandle, out m_banUntil)) |
138 | { | 138 | { |
139 | if (DateTime.Now < m_banUntil) | 139 | if (DateTime.UtcNow < m_banUntil) |
140 | { | 140 | { |
141 | ret = true; | 141 | ret = true; |
142 | } | 142 | } |
@@ -157,7 +157,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer | |||
157 | m_idCache = new ExpiringCache<ulong, DateTime>(); | 157 | m_idCache = new ExpiringCache<ulong, DateTime>(); |
158 | m_bannedRegions.Add(pAgentID, m_idCache, TimeSpan.FromSeconds(newTime)); | 158 | m_bannedRegions.Add(pAgentID, m_idCache, TimeSpan.FromSeconds(newTime)); |
159 | } | 159 | } |
160 | m_idCache.Add(pRegionHandle, DateTime.Now + TimeSpan.FromSeconds(extendTime), TimeSpan.FromSeconds(extendTime)); | 160 | m_idCache.Add(pRegionHandle, DateTime.UtcNow + TimeSpan.FromSeconds(extendTime), TimeSpan.FromSeconds(extendTime)); |
161 | } | 161 | } |
162 | 162 | ||
163 | // Remove the agent from the region's banned list | 163 | // Remove the agent from the region's banned list |