diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2005-03-27 06:49:38 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2005-03-27 06:49:38 +0000 |
commit | 4b27a0f7384889e80b637f3c4906398bdaa01084 (patch) | |
tree | 95b665eb3fb80534f4e523f422d95e6f8e6ab8b1 /gpsutils.c | |
parent | 697603c905c7bd234f13c49c63b63e0b412def22 (diff) | |
download | gpsd-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |