Skip to content

Commit

Permalink
fix lastUpdate
Browse files Browse the repository at this point in the history
  • Loading branch information
yfblock committed May 9, 2023
1 parent 378c13a commit 51cd446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spider/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down

0 comments on commit 51cd446

Please sign in to comment.