mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-16 12:50:42 +08:00
jqrangeslider-tests.ts bug fix
This commit is contained in:
1 parent
ed4a49267b
commit
266df0f4a0
1 file changed
+4
-1
@@ -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