I'm trying to set the system clock on an NVIDIA Jetson using a USB connection to an Advanced Navigation Spatial FOG Dual. I found the following script from a previously answered question:
...
#!/bin/bash
#date -s '02/15/2023'
sleep 1
pkill ntpd
pkill gpsd
gpsd /dev/ttyUSB0
sleep 2
GPSDATE=`gpspipe -w | head -10 | grep TPV | sed -r 's/.*"time":"([^"]*)".*/\1/' | head -1`
echo $GPSDATE
date -s "$GPSDATE"
#/usr/sbin/ntpd
...
The script executes, but does not set the system set the clock accordingly.