timestamps too

This commit is contained in:
j 2014-02-18 11:06:38 +00:00
parent ec3a077c2e
commit 9e0497c76b

View file

@ -259,6 +259,8 @@ Ox.makeDate = function(date) {
date += '-01-01';
} else if (/^\d{4}-\d{2}$/.test(date)) {
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, '/');
}