From 09d19d876fc18bfff20dfe207001d652cdf28d46 Mon Sep 17 00:00:00 2001 From: chenchun Date: Sat, 8 Feb 2025 10:37:33 +0800 Subject: [PATCH] =?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);