diff options
-rw-r--r-- | driver_nmea0183.c | 4 | ||||
-rw-r--r-- | gpsd.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/driver_nmea0183.c b/driver_nmea0183.c index 24a0a1b9..0f41a1c8 100644 --- a/driver_nmea0183.c +++ b/driver_nmea0183.c @@ -176,9 +176,9 @@ static int merge_ddmmyy(char *ddmmyy, struct gps_device_t *session) * Telix fails on GPS rollover to 2099, which 32 bit system * can not handle. So wrap at 2080. That way 64 bit systems * work until 2080, and 2099 gets reported as 1999. - * since GPS epoch started in 1981, allows for old NMEA to work. + * since GPS epoch started in 1980, allows for old NMEA to work. */ - if (2080 < year) { + if (2080 <= year) { year -= 100; } @@ -151,7 +151,7 @@ enum isgpsstat_t { * choosing this as the cutoff, we'll never reject historical GPS logs * that are actually valid. */ -#define GPS_EPOCH 315964800 /* 6 Jan 1981 00:00:00 UTC */ +#define GPS_EPOCH 315964800 /* 6 Jan 1980 00:00:00 UTC */ /* time constant */ #define SECS_PER_DAY (60*60*24) /* seconds per day */ |