summaryrefslogtreecommitdiff
path: root/gpsutils.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-03-27 06:49:38 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-03-27 06:49:38 +0000
commit4b27a0f7384889e80b637f3c4906398bdaa01084 (patch)
tree95b665eb3fb80534f4e523f422d95e6f8e6ab8b1 /gpsutils.c
parent697603c905c7bd234f13c49c63b63e0b412def22 (diff)
downloadgpsd-4b27a0f7384889e80b637f3c4906398bdaa01084.tar.gz
unix_to_iso8601() should not do timezone correction. That's the driver's job.
Diffstat (limited to 'gpsutils.c')
-rw-r--r--gpsutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsutils.c b/gpsutils.c
index eac77434..615860c7 100644
--- a/gpsutils.c
+++ b/gpsutils.c
@@ -64,7 +64,7 @@ char *unix_to_iso8601(double fixtime, char *isotime)
fractional = modf(fixtime, &integral);
intfixtime = (time_t)integral;
- gmtime_r(&intfixtime, &when);
+ localtime_r(&intfixtime, &when);
strftime(isotime, 28, "%Y-%m-%dT%H:%M:%S", &when);
slen = strlen(isotime);