mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 05:20:24 +08:00
jqrangeslider-tests.ts bug fix
This commit is contained in:
@@ -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;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user