add a fixme and a semicolon

This commit is contained in:
rolux 2012-05-27 23:17:02 +02:00
parent 3fa59712c8
commit c09ef8b2b6

View file

@ -275,6 +275,7 @@ Ox.parseDate <f> Takes a string ('YYYY-MM-DD HH:MM:SS') and returns a date
> Ox.parseDate('50', true).getUTCFullYear() > Ox.parseDate('50', true).getUTCFullYear()
50 50
@*/ @*/
// FIXME: Why no milliseconds?
Ox.parseDate = function(str, utc) { Ox.parseDate = function(str, utc) {
var date = new Date(0), var date = new Date(0),
defaults = [, 1, 1, 0, 0, 0], defaults = [, 1, 1, 0, 0, 0],
@ -334,7 +335,7 @@ Ox.parseDateRange = function(start, end, utc) {
'Hours', 'Minutes', 'Seconds', 'Milliseconds' 'Hours', 'Minutes', 'Seconds', 'Milliseconds'
].forEach(function(part) { ].forEach(function(part) {
Ox['get' + part] = function(date, utc) { 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.setPart(date) modifies date
Ox['set' + part] = function(date, num, utc) { Ox['set' + part] = function(date, num, utc) {