add a fixme and a semicolon
This commit is contained in:
parent
3fa59712c8
commit
c09ef8b2b6
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||
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) {
|
||||
|
|
Loading…
Reference in a new issue