Install ExifTool and run the following in a terminal:
exiftool -geotag="/path/to/your/GPS/track.kml" -geosync=7:00:00 /path/to/your/photos/folder
The geosync
parameter is used when your GPS track is not in the same timezone as your photos. In the above example the GPS track is in the UTC timezone while the photos are in UTC-7.
More parameters can be added to that command, see online documentation.