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(); } }