bugfix 🐛

This commit is contained in:
Jannis R 2016-08-06 19:00:17 +02:00
parent 09fb2622f9
commit 7453686fbd

View file

@ -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)]