Skip to content

Commit

Permalink
Make sure Date and Time exist
Browse files Browse the repository at this point in the history
Apparently sometimes they do not.
  • Loading branch information
tkurki committed Dec 11, 2016
1 parent f82681b commit b5d735a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pgns/126992.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ module.exports = [
value: function(n2k) {
return n2k.fields.Date.replace(/\./g, '-') + "T" + n2k.fields.Time + "Z";
},
filter: function(n2k) {
return typeof n2k.fields['Date'] != 'undefined' && typeof n2k.fields['Time'] != 'undefined'
},
node: 'navigation.datetime'
}
]

0 comments on commit b5d735a

Please sign in to comment.