From a645264da7d00b36d455c119de037d57d2e3ca2c Mon Sep 17 00:00:00 2001 From: chenchun Date: Sat, 8 Feb 2025 10:39:53 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=BB=9F=E4=B8=80=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=97=B6=E5=8C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../YiFrameworkBackgroundWorkersHangfireModule.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Yi.Abp.Net8/framework/Yi.Framework.BackgroundWorkers.Hangfire/YiFrameworkBackgroundWorkersHangfireModule.cs b/Yi.Abp.Net8/framework/Yi.Framework.BackgroundWorkers.Hangfire/YiFrameworkBackgroundWorkersHangfireModule.cs index 5894822f..d0a44ce1 100644 --- a/Yi.Abp.Net8/framework/Yi.Framework.BackgroundWorkers.Hangfire/YiFrameworkBackgroundWorkersHangfireModule.cs +++ b/Yi.Abp.Net8/framework/Yi.Framework.BackgroundWorkers.Hangfire/YiFrameworkBackgroundWorkersHangfireModule.cs @@ -28,7 +28,7 @@ public class YiFrameworkBackgroundWorkersHangfireModule : AbpModule foreach (var work in works) { //如果为空,默认使用服务器本地上海时间 - work.TimeZone ??= TimeZoneInfo.FindSystemTimeZoneById("Asia/Shanghai"); + work.TimeZone = TimeZoneInfo.Local; if (redisEnabled) { await backgroundWorkerManager.AddAsync(work);