feat: 统一修改时区

This commit is contained in:
chenchun
2025-02-08 10:39:53 +08:00
parent 09d19d876f
commit a645264da7

View File

@@ -28,7 +28,7 @@ public class YiFrameworkBackgroundWorkersHangfireModule : AbpModule
foreach (var work in works) foreach (var work in works)
{ {
//如果为空,默认使用服务器本地上海时间 //如果为空,默认使用服务器本地上海时间
work.TimeZone ??= TimeZoneInfo.FindSystemTimeZoneById("Asia/Shanghai"); work.TimeZone = TimeZoneInfo.Local;
if (redisEnabled) if (redisEnabled)
{ {
await backgroundWorkerManager.AddAsync(work); await backgroundWorkerManager.AddAsync(work);