Skip to content

Commit

Permalink
fix eng date bug
Browse files Browse the repository at this point in the history
  • Loading branch information
thebinij committed Feb 27, 2023
1 parent 94382aa commit cd2e072
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/common/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ export function formatADdate(date: Date, format: DateFormat): string {
return `${month}-${day}-${year}`;
case 'DD-MM-YYYY':
return `${day}-${month}-${year}`;
case 'YYYY-MM-DD':
default:
return `${month}-${day}-${year}`;
return `${year}-${month}-${day}`;
}
}

Expand Down

0 comments on commit cd2e072

Please sign in to comment.