From c09ef8b2b6698a78749035fee0087e65c2b10941 Mon Sep 17 00:00:00 2001 From: rolux Date: Sun, 27 May 2012 23:17:02 +0200 Subject: [PATCH] add a fixme and a semicolon --- source/Ox/js/Date.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {