From 09d19d876fc18bfff20dfe207001d652cdf28d46 Mon Sep 17 00:00:00 2001 From: chenchun Date: Sat, 8 Feb 2025 10:37:33 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E6=97=B6=E5=8C=BA=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E9=87=87=E7=94=A8=E4=B8=8A=E6=B5=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../YiFrameworkBackgroundWorkersHangfireModule.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 74e5c223..5894822f 100644 --- a/Yi.Abp.Net8/framework/Yi.Framework.BackgroundWorkers.Hangfire/YiFrameworkBackgroundWorkersHangfireModule.cs +++ b/Yi.Abp.Net8/framework/Yi.Framework.BackgroundWorkers.Hangfire/YiFrameworkBackgroundWorkersHangfireModule.cs @@ -27,8 +27,8 @@ public class YiFrameworkBackgroundWorkersHangfireModule : AbpModule bool.TryParse(configuration["Redis:IsEnabled"], out var redisEnabled); foreach (var work in works) { - //如果为空,默认使用服务器本地utc时间 - work.TimeZone ??= TimeZoneInfo.Local; + //如果为空,默认使用服务器本地上海时间 + work.TimeZone ??= TimeZoneInfo.FindSystemTimeZoneById("Asia/Shanghai"); if (redisEnabled) { await backgroundWorkerManager.AddAsync(work); From a645264da7d00b36d455c119de037d57d2e3ca2c Mon Sep 17 00:00:00 2001 From: chenchun Date: Sat, 8 Feb 2025 10:39:53 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20=E7=BB=9F=E4=B8=80=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=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);