File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ public unsafe partial class WantedTargetScanner : IHostedService
6161
6262 private readonly List < uint > _foundWantedTargets = [ ] ;
6363 private readonly List < uint > _foundTreasures = [ ] ;
64- private DateTime _lastCheck = DateTime . Now ;
64+ private DateTime _lastCheck = DateTime . UtcNow ;
6565 private Director * _lastDirector ;
6666
6767 public Task StartAsync ( CancellationToken cancellationToken )
@@ -85,10 +85,10 @@ private void Framework_Update(IFramework framework)
8585 if ( ! _pluginConfig . NotifyTreasure && ! _pluginConfig . NotifyWantedTarget )
8686 return ;
8787
88- if ( DateTime . Now - _lastCheck < TimeSpan . FromSeconds ( 1 ) )
88+ if ( DateTime . UtcNow - _lastCheck < TimeSpan . FromSeconds ( 1 ) )
8989 return ;
9090
91- _lastCheck = DateTime . Now ;
91+ _lastCheck = DateTime . UtcNow ;
9292
9393 var activeDirector = UIState . Instance ( ) ->DirectorTodo . Director ;
9494 if ( _lastDirector != activeDirector )
You can’t perform that action at this time.
0 commit comments