diff --git a/WebApi_data_value/Services/IHostedService.cs b/WebApi_data_value/Services/IHostedService.cs index 9c636f5..4335146 100644 --- a/WebApi_data_value/Services/IHostedService.cs +++ b/WebApi_data_value/Services/IHostedService.cs @@ -23,7 +23,7 @@ namespace Parking_space_WebAPI.BackgroundServices public Task StartAsync(CancellationToken cancellationToken) { - TimeSpan scheduledTime = new TimeSpan(0, 19, 0); //設定固定每天存取的時間 + TimeSpan scheduledTime = new TimeSpan(0, 23, 59); //設定固定每天存取的時間 var now = DateTime.Now; var nextRunTime = DateTime.Today.Add(scheduledTime);