diff options
-rw-r--r-- | gpsd.c | 4 | ||||
-rwxr-xr-x | regress-driver | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -1996,6 +1996,10 @@ int main(int argc, char *argv[]) } #endif /* defined(CONTROL_SOCKET_ENABLE) || defined(SYSTEMD_ENABLE) */ + + /* gpsd can't work with 'rigth' timezone when leapseconds inserted */ + (void)putenv("TZ=UTC"); + /* might be time to daemonize */ if (go_background) { /* not SuS/POSIX portable, but we have our own fallback version */ diff --git a/regress-driver b/regress-driver index 823a7270..f6bcfc02 100755 --- a/regress-driver +++ b/regress-driver @@ -96,10 +96,6 @@ then opts="$opts -b" fi -# GPS tests can spuriously fail on Linuxes that set the so-called "right" -# timezones with leap-second offset baked it. -TZ=/usr/share/zoneinfo/UTC - case $mode in regress) echo "Testing the $testing..." >&2 |