mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 19:07:08 +00:00
jqrangeslider-tests.ts bug fix
This commit is contained in:
parent
ed4a49267b
commit
266df0f4a0
@ -94,7 +94,10 @@ $("#formatterExample").dateRangeSlider({
|
||||
formatter: (val: Date) => {
|
||||
var days = val.getDay(),
|
||||
month = val.getMonth() + 1,
|
||||
year = val.getYear();
|
||||
// https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/getYear#Description
|
||||
// getYear is no longer used and has been replaced by the getFullYear method.
|
||||
// year = val.getYear();
|
||||
year = val.getFullYear();
|
||||
return days + "/" + month + "/" + year;
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user