Browse Source

fixed conversion from moment to ISODate

codeClimate
Alexander Wunschik 7 years ago
parent
commit
daf3e65622
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/util.js

+ 1
- 1
lib/util.js View File

@ -470,7 +470,7 @@ exports.convert = function (object, type) {
return new Date(Number(match[1])).toISOString(); // parse number
}
else {
return new Date(object).toISOString(); // parse string
return moment(object).format(); // ISO 8601
}
}
else {

Loading…
Cancel
Save