Skip to content

Commit

Permalink
fix: replace deprecated getYear date API in favor of getFullYear. R…
Browse files Browse the repository at this point in the history
  • Loading branch information
plainheart committed Aug 6, 2023
1 parent 8f7b489 commit 0ee8e82
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion en/option-gl/component/axis3D-common.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ formatter: function (value, index) {
var date = new Date(value);
var texts = [(date.getMonth() + 1), date.getDate()];
if (index === 0) {
texts.unshift(date.getYear());
texts.unshift(date.getFullYear());
}
return texts.join('/');
}
Expand Down
2 changes: 1 addition & 1 deletion en/option/component/axis-common.md
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ formatter: function (value, index) {
var date = new Date(value);
var texts = [(date.getMonth() + 1), date.getDate()];
if (index === 0) {
texts.unshift(date.getYear());
texts.unshift(date.getFullYear());
}
return texts.join('/');
}
Expand Down
2 changes: 1 addition & 1 deletion zh/option-gl/component/axis3D-common.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ formatter: function (value, index) {
var date = new Date(value);
var texts = [(date.getMonth() + 1), date.getDate()];
if (index === 0) {
texts.unshift(date.getYear());
texts.unshift(date.getFullYear());
}
return texts.join('/');
}
Expand Down
2 changes: 1 addition & 1 deletion zh/option/component/axis-common.md
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ formatter: function (value, index) {
var date = new Date(value);
var texts = [(date.getMonth() + 1), date.getDate()];
if (index === 0) {
texts.unshift(date.getYear());
texts.unshift(date.getFullYear());
}
return texts.join('/');
}
Expand Down

0 comments on commit 0ee8e82

Please sign in to comment.