@signalk/nmea0183-signalk
Advanced tools
Comparing version 3.10.0 to 3.10.1
@@ -73,3 +73,3 @@ /* | ||
const second = (parts[0] || '').substring(4, 6) | ||
const milliSecond = (parts[0].substring(4) % second)*1000 | ||
const milliSecond = (parts[0].substring(4) % 1)*1000 | ||
const d = new Date(Date.UTC(year, month, day, hour, minute, second, milliSecond )) | ||
@@ -76,0 +76,0 @@ const ts = d.toISOString(); |
{ | ||
"name": "@signalk/nmea0183-signalk", | ||
"version": "3.10.0", | ||
"version": "3.10.1", | ||
"description": "A node.js/javascript parser for NMEA0183 sentences. Sentences are parsed to Signal K format.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -36,2 +36,8 @@ /** | ||
}) | ||
it('Doesn\t choke when the number of seconds is 0', () => { | ||
const delta = new Parser().parse("$IIZDA,085400,22,07,2021,,*50") | ||
delta.updates[0].values.should.contain.an.item.with.property('path', 'navigation.datetime') | ||
delta.updates[0].values.should.contain.an.item.with.property('value', '2021-07-22T08:54:00.000Z') | ||
}) | ||
}) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
263460
6856