dji_srt_parser
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -1,2 +0,2 @@ | ||
const geoTz = require('geo-tz'); | ||
const tzlookup = require('tz-lookup'); | ||
const moment = require('moment-timezone'); | ||
@@ -153,6 +153,6 @@ | ||
if (sample) { | ||
const tzs = geoTz(sample.GPS.LATITUDE, sample.GPS.LONGITUDE); | ||
if (tzs.length) { | ||
const tz = tzlookup(sample.GPS.LATITUDE, sample.GPS.LONGITUDE); | ||
if (tz) { | ||
let d = moment(sample.DATE); | ||
offset = (d.utcOffset() - d.tz(tzs[0]).utcOffset()) * 60 * 1000; | ||
offset = (d.utcOffset() - d.tz(tz).utcOffset()) * 60 * 1000; | ||
} | ||
@@ -159,0 +159,0 @@ } |
@@ -9,3 +9,3 @@ { | ||
}, | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Parses and interprets DJI's drones SRT metadata", | ||
@@ -52,4 +52,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"geo-tz": "^6.0.1", | ||
"moment-timezone": "^0.5.32" | ||
"moment-timezone": "^0.5.32", | ||
"tz-lookup": "^6.1.25" | ||
}, | ||
@@ -56,0 +56,0 @@ "devDependencies": { |
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
+ Addedtz-lookup@^6.1.25
+ Addedtz-lookup@6.1.25(transitive)
- Removedgeo-tz@^6.0.1
- Removed@turf/boolean-point-in-polygon@6.5.0(transitive)
- Removed@turf/helpers@6.5.0(transitive)
- Removed@turf/invariant@6.5.0(transitive)
- Removedarray-source@0.0.4(transitive)
- Removedbuffer-from@1.1.2(transitive)
- Removedcommander@2.20.3(transitive)
- Removedconcat-stream@2.0.0(transitive)
- Removedfile-source@0.6.1(transitive)
- Removedgeo-tz@6.0.2(transitive)
- Removedgeobuf@3.0.2(transitive)
- Removedieee754@1.2.1(transitive)
- Removedinherits@2.0.4(transitive)
- Removedpath-source@0.1.3(transitive)
- Removedpbf@3.3.0(transitive)
- Removedprotocol-buffers-schema@3.6.0(transitive)
- Removedreadable-stream@3.6.2(transitive)
- Removedresolve-protobuf-schema@2.1.0(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedshapefile@0.6.6(transitive)
- Removedslice-source@0.4.1(transitive)
- Removedstream-source@0.3.5(transitive)
- Removedstring_decoder@1.3.0(transitive)
- Removedtext-encoding@0.6.4(transitive)
- Removedtypedarray@0.0.6(transitive)
- Removedutil-deprecate@1.0.2(transitive)