diff --git a/app/service/hikvision.js b/app/service/hikvision.js index 84b7995..c87d7ff 100644 --- a/app/service/hikvision.js +++ b/app/service/hikvision.js @@ -17,8 +17,8 @@ class HikvisionService extends BaseService { const str = String(datetime).trim(); // 按 UTC 解析 const utc = new Date(str + 'Z'); - // 转为北京时间 - const cst = new Date(utc.getTime() + 8 * 3600000); + // 转为北京时间,往前 5 秒覆盖扫描操作 + const cst = new Date(utc.getTime() + 8 * 3600000 - 5000); return cst.toISOString().replace('Z', '+08:00'); }