From 9e0497c76beec2f82dfd75d661e2bbebd6eed5df Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 18 Feb 2014 11:06:38 +0000 Subject: [PATCH] timestamps too --- source/Ox/js/Date.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/Ox/js/Date.js b/source/Ox/js/Date.js index 4dee0db2..1fa7697f 100644 --- a/source/Ox/js/Date.js +++ b/source/Ox/js/Date.js @@ -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, '/'); }