Skip to content

Commit

Permalink
connection_departure_datetime).tz('Europe/Berlin').format();
Browse files Browse the repository at this point in the history
  • Loading branch information
martinheppner committed Aug 14, 2024
1 parent 40e8074 commit 97676a4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/TimeLine/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ export const GetDepartureText = (connection, t) => {
return <Fragment></Fragment>;
}

let depTime = (connection.connection_departure_datetime_entry).slice(11, 16)
// let depTime = (connection.connection_departure_datetime_entry).slice(11, 16)
let depTime = (connection.connection_departure_datetime).slice(11, 16)

const departureText = connection.connection_duration_minutes === 0 ?
moment(connection.connection_departure_datetime_entry).format("DD.MM HH:mm") :
// moment(connection.connection_departure_datetime_entry).format("DD.MM HH:mm") :
moment(connection.connection_departure_datetime).format("DD.MM HH:mm") :
`${depTime} - ${moment(connection.connection_arrival_datetime).format("HH:mm")}`;

return (
Expand Down

0 comments on commit 97676a4

Please sign in to comment.