diff --git a/source/Ox/js/Date.js b/source/Ox/js/Date.js index 7bcc0402..a05f53d5 100644 --- a/source/Ox/js/Date.js +++ b/source/Ox/js/Date.js @@ -279,8 +279,9 @@ Ox.parseDate = function(string, utc) { var date, defaults = [, 1, 1, 0, 0, 0, 0], values = /(-?\d+)-?(\d+)?-?(\d+)? ?(\d+)?:?(\d+)?:?(\d+)?\.?(\d+)?/ - .exec(string).slice(1); + .exec(string); if (values) { + values.shift(); date = new Date(); values = values.map(function(v, i) { return v ? (i == 6 ? Ox.pad(v, 3, '0') : v) : defaults[i];