mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-22 22:59:35 +02:00
bugfix 🐛
This commit is contained in:
parent
09fb2622f9
commit
7453686fbd
1 changed files with 1 additions and 1 deletions
2
parse.js
2
parse.js
|
@ -82,7 +82,7 @@ const part = (tz, s, p, r, c) => (pt) => {
|
|||
, end: new Date(dateTime(tz, c.date, pt.arr.aTimeR || pt.arr.aTimeS))
|
||||
}
|
||||
if (pt.dep.dTimeR && pt.dep.dTimeS) result.delay =
|
||||
dateTime(c.date, pt.dep.dTimeR) - dateTime(c.date, pt.dep.dTimeS)
|
||||
dateTime(tz, c.date, pt.dep.dTimeR) - dateTime(tz, c.date, pt.dep.dTimeS)
|
||||
if (pt.type === 'WALK') result.type = 'walking'
|
||||
else if (pt.type === 'JNY') {
|
||||
result.product = p[parseInt(pt.jny.prodX)]
|
||||
|
|
Loading…
Add table
Reference in a new issue