diff --git a/source/Ox/js/Date.js b/source/Ox/js/Date.js index ceb34ac0..5b1f071e 100644 --- a/source/Ox/js/Date.js +++ b/source/Ox/js/Date.js @@ -275,6 +275,7 @@ Ox.parseDate Takes a string ('YYYY-MM-DD HH:MM:SS') and returns a date > Ox.parseDate('50', true).getUTCFullYear() 50 @*/ +// FIXME: Why no milliseconds? Ox.parseDate = function(str, utc) { var date = new Date(0), defaults = [, 1, 1, 0, 0, 0], @@ -334,7 +335,7 @@ Ox.parseDateRange = function(start, end, utc) { 'Hours', 'Minutes', 'Seconds', 'Milliseconds' ].forEach(function(part) { Ox['get' + part] = function(date, utc) { - return Ox.makeDate(date)['get' + (utc ? 'UTC' : '') + part]() + return Ox.makeDate(date)['get' + (utc ? 'UTC' : '') + part](); } // Ox.setPart(date) modifies date Ox['set' + part] = function(date, num, utc) {