SignalK / signalk-derived-data

Generates deltas for values derived from signalk values
Apache License 2.0
18 stars 31 forks source link

fix: Change input for calculation of secondsSinceVesselUpdate consistently to epoch time format #61

Closed chris0348 closed 4 years ago

chris0348 commented 4 years ago

Convert both timestamps that are input for the calculation of secondsSinceVesselUpdate to epoch time. Background: Calculation of secondsSinceVesselUpdate failed with NaN since the format of the timestamps that are used for the calculation of secondsSinceVesselUpdate was inconsistent.