timestamps too
This commit is contained in:
parent
ec3a077c2e
commit
9e0497c76b
1 changed files with 2 additions and 0 deletions
|
@ -259,6 +259,8 @@ Ox.makeDate = function(date) {
|
||||||
date += '-01-01';
|
date += '-01-01';
|
||||||
} else if (/^\d{4}-\d{2}$/.test(date)) {
|
} else if (/^\d{4}-\d{2}$/.test(date)) {
|
||||||
date += '-01';
|
date += '-01';
|
||||||
|
} else if (/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$/.test(date)) {
|
||||||
|
date = date.replace(/T/, ' ').replace(/Z/, '');
|
||||||
}
|
}
|
||||||
date = date.replace(/-/g, '/');
|
date = date.replace(/-/g, '/');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue