From c78f6e1fe5bebbf25150ae8b1e648aa417fe2a0c Mon Sep 17 00:00:00 2001 From: goat Date: Wed, 2 Aug 2023 22:58:21 +0200 Subject: [PATCH] fix: use UtcNow to date textures --- Dalamud/Interface/Internal/TextureManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dalamud/Interface/Internal/TextureManager.cs b/Dalamud/Interface/Internal/TextureManager.cs index b61ad74da..2f8ac27d9 100644 --- a/Dalamud/Interface/Internal/TextureManager.cs +++ b/Dalamud/Interface/Internal/TextureManager.cs @@ -239,7 +239,7 @@ internal class TextureManager : IDisposable, IServiceType, ITextureSubstitutionP } if (refresh && info.KeepAliveCount == 0) - info.LastAccess = DateTime.Now; + info.LastAccess = DateTime.UtcNow; if (info is { Wrap: not null }) return info; @@ -387,7 +387,7 @@ internal class TextureManager : IDisposable, IServiceType, ITextureSubstitutionP if (texInfo.Value.KeepAliveCount > 0 || texInfo.Value.Wrap == null) continue; - if (DateTime.Now - texInfo.Value.LastAccess > TimeSpan.FromMilliseconds(MillisecondsEvictionTime)) + if (DateTime.UtcNow - texInfo.Value.LastAccess > TimeSpan.FromMilliseconds(MillisecondsEvictionTime)) { Log.Verbose("Evicting {Path} since too old", texInfo.Key); texInfo.Value.Wrap.Dispose();