diff options
author | Daniel_M_Williams <dwilliams@sea-machines.com> | 2018-12-14 13:02:51 -0800 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2018-12-14 13:03:56 -0800 |
commit | 4a58ee24b9ec6e1d2753bbdd2cd01a55d2ccde5c (patch) | |
tree | ffcc8e62ca50d089f10b6e472a01a825d9c810a1 /gpspipe.c | |
parent | 0dd4c269e818cb0cb554510bbf0dc4168d660b29 (diff) | |
download | gpsd-4a58ee24b9ec6e1d2753bbdd2cd01a55d2ccde5c.tar.gz |
gpspipe: now outputs its timestamps as UTC, not localtime
Signed-off-by: Gary E. Miller <gem@rellim.com>
Diffstat (limited to 'gpspipe.c')
-rw-r--r-- | gpspipe.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -355,7 +355,7 @@ int main(int argc, char **argv) struct tm *tmp_now; (void)clock_gettime(CLOCK_REALTIME, &now); - tmp_now = localtime((time_t *)&(now.tv_sec)); + tmp_now = gmtime((time_t *)&(now.tv_sec)); (void)strftime(tmstr, sizeof(tmstr), format, tmp_now); new_line = 0; |