summaryrefslogtreecommitdiff
path: root/gpspipe.c
diff options
context:
space:
mode:
authorDaniel_M_Williams <dwilliams@sea-machines.com>2018-12-14 13:02:51 -0800
committerGary E. Miller <gem@rellim.com>2018-12-14 13:03:56 -0800
commit4a58ee24b9ec6e1d2753bbdd2cd01a55d2ccde5c (patch)
treeffcc8e62ca50d089f10b6e472a01a825d9c810a1 /gpspipe.c
parent0dd4c269e818cb0cb554510bbf0dc4168d660b29 (diff)
downloadgpsd-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpspipe.c b/gpspipe.c
index 42ae161e..ec88001e 100644
--- a/gpspipe.c
+++ b/gpspipe.c
@@ -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;