From c64eff200c3c54d23a614dfac5f50afb5c098724 Mon Sep 17 00:00:00 2001 From: qi_0527 Date: Sun, 27 Oct 2024 21:24:51 +0800 Subject: [PATCH] Second upload --- WebApi_data_value/Services/IHostedService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WebApi_data_value/Services/IHostedService.cs b/WebApi_data_value/Services/IHostedService.cs index 4335146..5d10376 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, 23, 59); //設定固定每天存取的時間 + TimeSpan scheduledTime = new TimeSpan(23, 59, 0); //設定固定每天存取的時間 var now = DateTime.Now; var nextRunTime = DateTime.Today.Add(scheduledTime);