From 51cd4465173a9939bbb5d495054738a713f87af3 Mon Sep 17 00:00:00 2001 From: yufeng <321353225@qq.com> Date: Tue, 9 May 2023 11:20:44 +0800 Subject: [PATCH] fix lastUpdate --- spider/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spider/src/index.ts b/spider/src/index.ts index 07f504c464..477a346758 100644 --- a/spider/src/index.ts +++ b/spider/src/index.ts @@ -149,7 +149,7 @@ async function date2timestamp(latest: any) { let times = latestFile[i].replace(".txt", "").split('_'); const dateStr = `${times[0]}-${times[1]}-${times[2]} ${times[3]}:${times[4]}:${times[5]}`; const date = new Date(dateStr); - if(time == 0 || date.getTime() < time) { + if(date.getTime() > time) { time = date.getTime(); } }