Use DateTime.Now instead of DateTime.UtcNow
This commit is contained in:
@ -33,7 +33,7 @@ namespace Hcs.WebApp.BackgroundServices
|
||||
var headquartersService = scope.ServiceProvider.GetRequiredService<HeadquartersService>();
|
||||
try
|
||||
{
|
||||
var startedAt = DateTime.UtcNow;
|
||||
var startedAt = DateTime.Now;
|
||||
await headquartersService.SetOperationStartedAsync(operation.Id, startedAt);
|
||||
|
||||
state.InvokeOnOperationStarted(operation.Id, operation.CampaignId, startedAt);
|
||||
@ -41,11 +41,11 @@ namespace Hcs.WebApp.BackgroundServices
|
||||
var dataParser = dataParserFactory.CreateDataParser(scope, operation, webHostEnvironment);
|
||||
await dataParser.ParseAsync();
|
||||
|
||||
state.InvokeOnOperationEnded(operation.Id, operation.CampaignId, DateTime.UtcNow, string.Empty);
|
||||
state.InvokeOnOperationEnded(operation.Id, operation.CampaignId, DateTime.Now, string.Empty);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
var failedAt = DateTime.UtcNow;
|
||||
var failedAt = DateTime.Now;
|
||||
var failureReason = e.CombineMessages();
|
||||
await headquartersService.SetOperationEndedWithFailAsync(operation.Id, failedAt, failureReason);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user