SignalK / signalk-to-nmea0183

Signal K Node server plugin to convert Signal K to NMEA 0183
Apache License 2.0
13 stars 28 forks source link

wrong time in generated GLL sentence (local time instead of UTC) #96

Open mschiff opened 1 year ago

mschiff commented 1 year ago

There is a bug in the signalk-to-nmea0183 plugin when writing the GLL sentence:

        1       2 3        4 5         6 7
        |       | |        | |         | |
 $--GLL,ddmm.mm,a,dddmm.mm,a,hhmmss.ss,a*hh<CR><LF>

5 must be time in UTC of this position, hh is hours, mm is minutes, ss.ss is seconds

But the plugin is writing just local time into the sentence instead which leads to several problems.

The RMC sentence also has the UTC of the position and there it is implemented correctly.

The fix should be straigt forward in getting the timestamp in the same way as for the RMC sentence

tkurki commented 1 year ago

Moved to the correct repository.