Browse Source

Prevent moment deprecation warning (#2089)

codeClimate
Kelvin Del Monte 8 years ago
committed by Alexander Wunschik
parent
commit
d29fad2eff
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/util.js

+ 1
- 1
lib/util.js View File

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

Loading…
Cancel
Save