aboutsummaryrefslogtreecommitdiff
path: root/libplanfahr
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2014-04-14 06:29:12 +0200
committerGuido Günther <agx@sigxcpu.org>2014-04-14 06:29:12 +0200
commit3e558702bf389142fd3ee7e339e43ff70526e1ef (patch)
treef5a733f9fcccc2ed7b8e1dcd94d7ab22cf249ebb /libplanfahr
parentcc9f305ed213024e9114d68191bf696f2d9cb402 (diff)
hafas: make base time UTC
to fix a 1h difference since the switch daylight savings switch
Diffstat (limited to 'libplanfahr')
-rw-r--r--libplanfahr/providers/hafas-bin6.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libplanfahr/providers/hafas-bin6.c b/libplanfahr/providers/hafas-bin6.c
index b29849f..f1aa6d1 100644
--- a/libplanfahr/providers/hafas-bin6.c
+++ b/libplanfahr/providers/hafas-bin6.c
@@ -827,8 +827,7 @@ lpf_provider_hafas_bin6_parse_service_day (const char *data, int idx)
GDateTime*
lpf_provider_hafas_bin6_date_time(guint base_days, guint off_days, guint hours, guint min)
{
- /* FIXME: should we always use Europe/Berlin as TZ? */
- GDateTime *dt, *base = g_date_time_new_local (1979, 12, 31, 0, 0, 0);
+ GDateTime *dt, *base = g_date_time_new_utc (1979, 12, 31, 0, 0, 0);
dt = g_date_time_add (base,
(base_days + off_days) * G_TIME_SPAN_DAY +