diff options
author | Guido Günther <agx@sigxcpu.org> | 2014-04-14 06:29:12 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2014-04-14 06:29:12 +0200 |
commit | 3e558702bf389142fd3ee7e339e43ff70526e1ef (patch) | |
tree | f5a733f9fcccc2ed7b8e1dcd94d7ab22cf249ebb /libplanfahr/providers | |
parent | cc9f305ed213024e9114d68191bf696f2d9cb402 (diff) |
hafas: make base time UTC
to fix a 1h difference since the switch daylight savings switch
Diffstat (limited to 'libplanfahr/providers')
-rw-r--r-- | libplanfahr/providers/hafas-bin6.c | 3 |
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 + |