修复未初始化时区设置

This commit is contained in:
whyour 2025-02-28 00:56:40 +08:00
parent bae4073a64
commit 280085668e

View File

@ -38,7 +38,8 @@ export default async () => {
// 运行删除日志任务 // 运行删除日志任务
const data = await systemService.getSystemConfig(); const data = await systemService.getSystemConfig();
if (data && data.info && data.info.logRemoveFrequency) { if (data && data.info) {
if (data.info.logRemoveFrequency) {
const rmlogCron = { const rmlogCron = {
id: data.id as number, id: data.id as number,
name: '删除日志', name: '删除日志',
@ -55,6 +56,9 @@ export default async () => {
); );
} }
systemService.updateTimezone(data.info);
}
await subscriptionService.setSshConfig(); await subscriptionService.setSshConfig();
const subs = await subscriptionService.list(); const subs = await subscriptionService.list();
for (const sub of subs) { for (const sub of subs) {