Skip to content

Commit

Permalink
refactor(typescript): apply pull request suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
pac-guerreiro committed Mar 22, 2024
1 parent 5685095 commit ba09987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/DateUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ function formatToLongDateWithWeekday(datetime: string | Date): string {
* @returns Sunday
*/
function formatToDayOfWeek(datetime: Date): string {
return format(new Date(datetime), CONST.DATE.WEEKDAY_TIME_FORMAT);
return format(datetime, CONST.DATE.WEEKDAY_TIME_FORMAT);
}

/**
Expand Down

0 comments on commit ba09987

Please sign in to comment.