fix: 修复hangfire ufc时间问题

This commit is contained in:
橙子
2024-11-16 11:01:06 +08:00
parent 41f91ea12d
commit 18dd177961

View File

@@ -20,6 +20,8 @@ public class YiFrameworkBackgroundWorkersHangfireModule:AbpModule
foreach (var work in works)
{
//如果为空默认使用服务器本地utc时间
work.TimeZone = work.TimeZone ?? TimeZoneInfo.Local;
await backgroundWorkerManager.AddAsync(work);
}