Skip to content

Commit

Permalink
Update hackernews.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ronnygunawan authored Nov 17, 2023
1 parent 40f45bb commit 87ec56a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hackernews.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ for (;;) {

if (now.getUTCHours() >= 11) {
// The next time is 00:00 AM
nextTime = new Date(now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDay() + 1, 11, 0, 0, 0);
nextTime = new Date(now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate() + 1, 11, 0, 0, 0);
} else if (now.getUTCHours() < 11) {
// The next time is 11:00 AM
nextTime = new Date(now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDay(), 11, 0, 0, 0);
nextTime = new Date(now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate(), 11, 0, 0, 0);
}

// eslint-disable-next-line no-await-in-loop
Expand Down

0 comments on commit 87ec56a

Please sign in to comment.