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..d0a44ce1 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.Local; if (redisEnabled) { await backgroundWorkerManager.AddAsync(work);