This website works better with JavaScript.
Home
Explore
Help
Sign In
jrtechs
/
jrtechs-vis
mirror of
https://github.com/jrtechs/vis.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
82
Wiki
Activity
Browse Source
Prevent moment deprecation warning (
#2089
)
codeClimate
Kelvin Del Monte
8 years ago
committed by
Alexander Wunschik
parent
cd29400412
commit
d29fad2eff
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
}
else
{
return
moment
(
object
)
.
toDate
(
)
;
// parse string
return
moment
(
new
Date
(
object
)
)
.
toDate
(
)
;
// parse string
}
}
else
{
Write
Preview
Loading…
Cancel
Save