diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2014-09-29 15:39:19 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2014-09-29 15:39:19 -0400 |
commit | 76118dd9a35eb1516aee287d3aaa8f3824a712fb (patch) | |
tree | 65403bab9b535e2922342e527d732cb9fd8ff032 /timebase.c | |
parent | 0a36cb1944a53cb206161997da44486d7c95e712 (diff) | |
download | gpsd-76118dd9a35eb1516aee287d3aaa8f3824a712fb.tar.gz |
Better way to avoid glibc dependency.
Returns us to something amost identical to the original code.
Sigh. Timezones are a swamp.
All regression tests pass.
Diffstat (limited to 'timebase.c')
-rw-r--r-- | timebase.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -272,7 +272,7 @@ timestamp_t gpsd_utc_resolve(/*@in@*/struct gps_device_t *session) */ timestamp_t t; - t = (timestamp_t)timegm(&session->nmea.date) + + t = (timestamp_t)mkgmtime(&session->nmea.date) + session->nmea.subseconds; session->context->valid &=~ GPS_TIME_VALID; |