Skip to content

Commit

Permalink
hotfix(hackernews): missing greater or equal sign comparator
Browse files Browse the repository at this point in the history
  • Loading branch information
aldy505 committed Nov 17, 2023
1 parent 923a515 commit b4a05ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hackernews.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ for (;;) {
const now = new Date();
let nextTime;

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

0 comments on commit b4a05ca

Please sign in to comment.