replace DateTime.Now by utcNow in another place

LSLKeyTest
UbitUmarov 2016-08-01 00:58:16 +01:00
parent 8d5bc71a53
commit 708d2cd413
1 changed files with 2 additions and 2 deletions

View File

@ -136,7 +136,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
{ {
if (m_idCache.TryGetValue(pRegionHandle, out m_banUntil)) if (m_idCache.TryGetValue(pRegionHandle, out m_banUntil))
{ {
if (DateTime.Now < m_banUntil) if (DateTime.UtcNow < m_banUntil)
{ {
ret = true; ret = true;
} }
@ -157,7 +157,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
m_idCache = new ExpiringCache<ulong, DateTime>(); m_idCache = new ExpiringCache<ulong, DateTime>();
m_bannedRegions.Add(pAgentID, m_idCache, TimeSpan.FromSeconds(newTime)); m_bannedRegions.Add(pAgentID, m_idCache, TimeSpan.FromSeconds(newTime));
} }
m_idCache.Add(pRegionHandle, DateTime.Now + TimeSpan.FromSeconds(extendTime), TimeSpan.FromSeconds(extendTime)); m_idCache.Add(pRegionHandle, DateTime.UtcNow + TimeSpan.FromSeconds(extendTime), TimeSpan.FromSeconds(extendTime));
} }
// Remove the agent from the region's banned list // Remove the agent from the region's banned list