Use real dae object for default date value if already parsed
This commit is contained in:
parent
efe6fe15e2
commit
b4da667e5a
|
@ -17,7 +17,10 @@
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
let date
|
let date
|
||||||
if (isNaN(val)) {
|
if (val instanceof Date) {
|
||||||
|
// Use real date obj if already parsed
|
||||||
|
date = val
|
||||||
|
} else if (isNaN(val)) {
|
||||||
// Treat as date string of some sort
|
// Treat as date string of some sort
|
||||||
date = new Date(val)
|
date = new Date(val)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue