We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee1e6a8 commit dea9672Copy full SHA for dea9672
.changeset/little-chefs-relate.md
@@ -0,0 +1,5 @@
1
+---
2
+"@alauda/ui": patch
3
4
+
5
+fix: date format year
src/date-picker/calendar/range-picker-panel/component.ts
@@ -107,7 +107,9 @@ export class DateRangePickerPanelComponent extends CommonFormControl<Dayjs[]> {
107
leftDateRange = DateNavRange.Month;
108
rightDateRange = DateNavRange.Month;
109
110
- FOOTER_DATE_FORMAT = 'YYYY-MM-dd';
+ // Angular DatePipe uses CLDR date formats.
111
+ // `YYYY` represents week-based year and may differ from calendar year near year end.
112
+ FOOTER_DATE_FORMAT = 'yyyy-MM-dd';
113
114
leftAnchor = dayjs();
115
rightAnchor = dayjs().add(1, MONTH);
0 commit comments