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

@ -55,7 +55,7 @@ namespace Hcs.WebApp.BackgroundServices.CampaignManagers
using var transaction = await context.Database.BeginTransactionAsync();
try
{
startedAt = DateTime.UtcNow;
startedAt = DateTime.Now;
await HeadquartersService.SetCampaignStartedAsync(context, campaign.Id, startedAt);
await ProgressStepAsync(context, (int)Step.ExecutionWait);
@ -118,7 +118,7 @@ namespace Hcs.WebApp.BackgroundServices.CampaignManagers
{
await ProgressStepAsync(context, (int)Step.End);
endedAt = DateTime.UtcNow;
endedAt = DateTime.Now;
await HeadquartersService.SetCampaignEndedAsync(context, campaign.Id, endedAt);
await transaction.CommitAsync();

View File

@ -55,7 +55,7 @@ namespace Hcs.WebApp.BackgroundServices.CampaignManagers
using var transaction = await context.Database.BeginTransactionAsync();
try
{
startedAt = DateTime.UtcNow;
startedAt = DateTime.Now;
await HeadquartersService.SetCampaignStartedAsync(context, campaign.Id, startedAt);
await ProgressStepAsync(context, (int)Step.ExecutionWait);
@ -118,7 +118,7 @@ namespace Hcs.WebApp.BackgroundServices.CampaignManagers
{
await ProgressStepAsync(context, (int)Step.End);
endedAt = DateTime.UtcNow;
endedAt = DateTime.Now;
await HeadquartersService.SetCampaignEndedAsync(context, campaign.Id, endedAt);
await transaction.CommitAsync();

View File

@ -35,7 +35,7 @@ namespace Hcs.WebApp.BackgroundServices.CampaignManagers
public async Task EndWithFailAsync(Exception e)
{
var endedAt = DateTime.UtcNow;
var endedAt = DateTime.Now;
var failureReason = e.CombineMessages();
await HeadquartersService.SetCampaignEndedWithFailAsync(campaign.Id, endedAt, failureReason);

View File

@ -51,7 +51,7 @@ namespace Hcs.WebApp.BackgroundServices.CampaignManagers
using var transaction = await context.Database.BeginTransactionAsync();
try
{
startedAt = DateTime.UtcNow;
startedAt = DateTime.Now;
await HeadquartersService.SetCampaignStartedAsync(context, campaign.Id, startedAt);
await ProgressStepAsync(context, (int)Step.ParseWait);
@ -95,7 +95,7 @@ namespace Hcs.WebApp.BackgroundServices.CampaignManagers
{
await ProgressStepAsync(context, (int)Step.End);
endedAt = DateTime.UtcNow;
endedAt = DateTime.Now;
await HeadquartersService.SetCampaignEndedAsync(context, campaign.Id, endedAt);
await transaction.CommitAsync();