Use real dae object for default date value if already parsed
This commit is contained in:
parent
c0ca68cb83
commit
25ae109e72
|
@ -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