Use DateTime.Now instead of DateTime.UtcNow

This commit is contained in:
2025-11-24 15:05:43 +09:00
parent 3ccccd2467
commit be3d369575
13 changed files with 24 additions and 24 deletions

View File

@ -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);