Improve date parsing
This commit is contained in:
parent
db5603c5cd
commit
955f60abe8
|
@ -10,9 +10,11 @@ function date(x) {
|
|||
}
|
||||
if (_.isString(x)) {
|
||||
let r = x.match(/^\[\[(.+)\]\]$/);
|
||||
if (r) {
|
||||
return moment(r[1], "DD MMM YYYY")
|
||||
}
|
||||
return moment(x);
|
||||
}
|
||||
return moment(x, "YYYY-MM-DD");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user