Skip to content

Commit

Permalink
d-day 계산법 변경 (#161)
Browse files Browse the repository at this point in the history
fix: getDayByTimeSeconds ceil to floor
  • Loading branch information
sensecodevalue authored Sep 1, 2022
1 parent 3b48b0a commit 533e2d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/time.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const HOUR_TO_MINUTE = 60;
* @return 받은 초를 통해서 day로 계산해서 반환합니다.
*/
export function getDayByTimeSeconds(tiemSeconds: number) {
return Math.ceil(tiemSeconds / DAY_TO_SECONDS);
return Math.floor(tiemSeconds / DAY_TO_SECONDS);
}

/**
Expand Down

1 comment on commit 533e2d5

@vercel
Copy link

@vercel vercel bot commented on 533e2d5 Sep 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.