mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 12:07:05 +00:00
Merge branch 'feat/action-scheduler' of Common/Utils into dev
This commit is contained in:
commit
aa7a924d2b
1 changed files with 2 additions and 2 deletions
|
|
@ -99,7 +99,7 @@ namespace ICD.Common.Utils.Services.Scheduler
|
|||
try
|
||||
{
|
||||
actionsToRun = m_Actions
|
||||
.Where(a => a.NextRunTime < DateTime.Now)
|
||||
.Where(a => a.NextRunTime < IcdEnvironment.GetLocalTime())
|
||||
.OrderBy(a => a.NextRunTime)
|
||||
.ToArray();
|
||||
}
|
||||
|
|
@ -137,7 +137,7 @@ namespace ICD.Common.Utils.Services.Scheduler
|
|||
return;
|
||||
}
|
||||
|
||||
long msToNextAction = (long)(action.NextRunTime.Value - DateTime.Now).TotalMilliseconds;
|
||||
long msToNextAction = (long)(action.NextRunTime.Value - IcdEnvironment.GetLocalTime()).TotalMilliseconds;
|
||||
m_Timer.Reset(msToNextAction);
|
||||
}
|
||||
finally
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue