mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09:35 +02:00
fix stopover parsing 🐛
This commit is contained in:
parent
261cc5ed2c
commit
afc0124982
1 changed files with 2 additions and 2 deletions
|
@ -26,12 +26,12 @@ const createParseStopover = (profile, stations, lines, remarks, date) => {
|
|||
Object.defineProperty(res, 'canceled', {value: true})
|
||||
if (st.aCncl) {
|
||||
res.arrival = res.arrivalDelay = null
|
||||
const arr = profile.parseDateTime(profile, d.date, st.aTimeS)
|
||||
const arr = profile.parseDateTime(profile, date, st.aTimeS)
|
||||
res.formerScheduledArrival = arr.toISO()
|
||||
}
|
||||
if (st.dCncl) {
|
||||
res.departure = res.departureDelay = null
|
||||
const arr = profile.parseDateTime(profile, d.date, st.dTimeS)
|
||||
const arr = profile.parseDateTime(profile, date, st.dTimeS)
|
||||
res.formerScheduledDeparture = arr.toISO()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue