Skip to content

Commit

Permalink
refactor: return current time as millis when pattern and immediately …
Browse files Browse the repository at this point in the history
…are provided
  • Loading branch information
roggervalf committed Sep 5, 2024
1 parent b2e5186 commit 78553c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/repeat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ export const getNextMillis = (

try {
if(opts.immediately){
return interval.prev().getTime();
return new Date().getTime();
} else {
return interval.next().getTime();
}
Expand Down

0 comments on commit 78553c1

Please sign in to comment.