mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-03 00:00:58 +08:00
feat: 统一修改时区
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user