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
fixed conversion from moment to ISODate
codeClimate
Alexander Wunschik
8 years ago
parent
e39dc89cf8
commit
daf3e65622
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
@ -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
{
Write
Preview
Loading…
Cancel
Save