Skip to content

Commit

Permalink
fixing pool transition deadline calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
vsubhuman committed Jun 17, 2024
1 parent 1e6e189 commit 2ea245f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const formatTimeSpan = (futureMilliseconds: number, currentMilliseconds:
const currentTime = moment(currentMilliseconds);
const duration = moment.duration(futureTime.diff(currentTime));

const days = duration.days();
const days = Math.floor(duration.asDays());
const hours = duration.hours();
const minutes = duration.minutes();

Expand Down

0 comments on commit 2ea245f

Please sign in to comment.