aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2014-03-01 14:57:47 +0100
committerGuido Günther <agx@sigxcpu.org>2014-03-02 10:53:35 +0100
commit9a4888952c10655b752a9e45a9907813c646d972 (patch)
tree1f308e4b62d2df8d9e591f6c82c28d2dcb5cbb1f
parentd64eea978d7eaf7ebe7555d91ac418a836c97a8a (diff)
Fix real time arrival and departure time mixup
Thanks Matthias Schmitz for the detailed report
-rw-r--r--src/providers/de-db.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/providers/de-db.c b/src/providers/de-db.c
index 5c687b0..8ac9bd9 100644
--- a/src/providers/de-db.c
+++ b/src/providers/de-db.c
@@ -370,14 +370,14 @@ hafas_binary_parse_each_trip (const gchar *data, gsize num, guint base, const ch
h = pd->arr_pred / 100;
m = pd->arr_pred % 100;
dt = hafas_bin6_date_time (base, day_off, h, m);
- g_object_set (start, "rt_departure", dt, NULL);
+ g_object_set (start, "rt_arrival", dt, NULL);
}
if (pd->dep_pred != HAFAS_BIN6_NO_REALTIME) {
h = pd->dep_pred / 100;
m = pd->dep_pred % 100;
dt = hafas_bin6_date_time (base, day_off, h, m);
- g_object_set (end, "rt_arrival", dt, NULL);
+ g_object_set (end, "rt_departure", dt, NULL);
}
LPF_DEBUG("Trip #%d, part #%d, Pred. Dep Plat: %s, Pred. Arr Plat: %s", i, j,