Skip to content

Commit

Permalink
fix: format
Browse files Browse the repository at this point in the history
  • Loading branch information
HuberTRoy committed Jan 24, 2024
1 parent 7a820e9 commit aa8083a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/dateFormatters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const formatDate = (date: Date): string => {

export const getTimeLeft = (mNow: dayjs.Dayjs, mTo: dayjs.Dayjs): string => {
if (mNow.isAfter(mTo)) return 'This period is over';
return dayjs.duration(mTo.diff(mNow)).format('DD [d] hh [h] mm [m]');
return dayjs.duration(mTo.diff(mNow)).format('DD [d] HH [h] mm [m]');
};

export const getProgress = (now: Date, from: Date, to: Date): number => {
Expand Down

0 comments on commit aa8083a

Please sign in to comment.