forked from 0x2620/oxjs
use base 10 in parseInt, use Math.floor for numbers
This commit is contained in:
parent
79bb322112
commit
8bc8c57373
19 changed files with 44 additions and 45 deletions
|
|
@ -261,7 +261,7 @@ Ox.makeYear <f> Takes a date, number or string, returns a year
|
|||
1970
|
||||
@*/
|
||||
Ox.makeYear = function(date, utc) {
|
||||
return Ox.isDate(date) ? Ox.getFullYear(date, utc) : parseInt(date);
|
||||
return Ox.isDate(date) ? Ox.getFullYear(date, utc) : parseInt(date, 10);
|
||||
};
|
||||
|
||||
/*@
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue