summaryrefslogtreecommitdiff
path: root/gpsutils.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2019-04-23 14:39:39 -0700
committerGary E. Miller <gem@rellim.com>2019-04-23 14:39:39 -0700
commitd07dcea2457d9f00d01b055120be38ca80c568bc (patch)
tree073f0ae67ad3a3006bbc7eee731f839f007a0190 /gpsutils.c
parent3b637096f8072e9da66f76a99a016837ad44d184 (diff)
downloadgpsd-d07dcea2457d9f00d01b055120be38ca80c568bc.tar.gz
gpsutils: DST is not part of UTC!
Diffstat (limited to 'gpsutils.c')
-rw-r--r--gpsutils.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gpsutils.c b/gpsutils.c
index feac1253..c4606901 100644
--- a/gpsutils.c
+++ b/gpsutils.c
@@ -411,8 +411,10 @@ time_t mkgmtime(register struct tm * t)
result += t->tm_min;
result *= 60;
result += t->tm_sec;
- if (t->tm_isdst == 1)
- result -= 3600;
+ /* this is UTC, no DST
+ * if (t->tm_isdst == 1)
+ * result -= 3600;
+ */
return (result);
}