Skip to content

Commit

Permalink
fix(itinerary-details): wrong date time locale
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Helms authored and Andreas Helms committed Dec 10, 2024
1 parent 29a5e7e commit e7aba0d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/component/Duration.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ function Duration(props) {
hour12: false,
};
const duration = durationToString(props.duration * 1000);
const startTime = new Intl.DateTimeFormat('en-US', timeOptions).format(
const startTime = new Intl.DateTimeFormat('de-DE', timeOptions).format(
new Date(props.startTime),
);
const endTime = new Intl.DateTimeFormat('en-US', timeOptions).format(
const endTime = new Intl.DateTimeFormat('de-DE', timeOptions).format(
new Date(props.endTime),
);
const futureText = props.futureText
Expand Down
2 changes: 1 addition & 1 deletion app/util/timeUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export function isToday(startTime, refTime) {
* Returns formatted date / time
*/
export function getFormattedTimeDate(startTime, pattern) {
return moment(startTime).format(pattern);
return moment(startTime).locale('de').format(pattern);
}

/**
Expand Down

0 comments on commit e7aba0d

Please sign in to comment.