Skip to content

Commit

Permalink
Use minutes instead of months
Browse files Browse the repository at this point in the history
  • Loading branch information
stitesExpensify committed Jan 30, 2025
1 parent fd0ba9d commit afc760e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/DateUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -819,9 +819,9 @@ function getFormattedReservationRangeDate(date1: Date, date2: Date): string {
*/
function getFormattedTransportDate(date: Date): string {
if (isThisYear(date)) {
return `${translateLocal('travel.departs')} ${format(date, 'EEEE, MMM d')} ${translateLocal('common.conjunctionAt')} ${format(date, 'HH:MM')}`;
return `${translateLocal('travel.departs')} ${format(date, 'EEEE, MMM d')} ${translateLocal('common.conjunctionAt')} ${format(date, 'HH:mm a')}`;
}
return `${translateLocal('travel.departs')} ${format(date, 'EEEE, MMM d, yyyy')} ${translateLocal('common.conjunctionAt')} ${format(date, 'HH:MM')}`;
return `${translateLocal('travel.departs')} ${format(date, 'EEEE, MMM d, yyyy')} ${translateLocal('common.conjunctionAt')} ${format(date, 'HH:mm a')}`;
}

/**
Expand Down

0 comments on commit afc760e

Please sign in to comment.