From: robertlipe Date: Wed, 24 Jul 2013 02:31:23 +0000 (+0000) Subject: Roll back part of previous change. This should be a local time. X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~12^2~11^2~485 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f98e0b53421e73ef20d6fc29a2c54447bbb9ec14;p=gpsbabel.git Roll back part of previous change. This should be a local time. Tested with a variety of TZ values and seems OK now. --- diff --git a/gpsbabel/trackfilter.cc b/gpsbabel/trackfilter.cc index 2cc862ce2..b66cab2b9 100644 --- a/gpsbabel/trackfilter.cc +++ b/gpsbabel/trackfilter.cc @@ -387,7 +387,7 @@ trackfilter_split_init_rte_name(route_head *track, const QDateTime dt) char buff[128], tbuff[128]; struct tm tm; - time_t time = dt.toUTC().toTime_t(); + time_t time = dt.toTime_t(); tm = *localtime(&time); (opt_interval != 0) ?