实际运行和设置的运行时间偏差八小时
AddOrUpdate中的默认是UTC时间,需要手动设置为Local
RecurringJob.AddOrUpdate(() => WriteLog("xcxxx"), Cron.Daily(14,00), TimeZoneInfo.Local); //注意最小单位是分钟
实际运行和设置的运行时间偏差八小时
AddOrUpdate中的默认是UTC时间,需要手动设置为Local
RecurringJob.AddOrUpdate(() => WriteLog("xcxxx"), Cron.Daily(14,00), TimeZoneInfo.Local); //注意最小单位是分钟