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);