Skip to content

Commit dea9672

Browse files
ypzhaofengtianze
authored andcommitted
fix: date format year
1 parent ee1e6a8 commit dea9672

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.changeset/little-chefs-relate.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ export class DateRangePickerPanelComponent extends CommonFormControl<Dayjs[]> {
107107
leftDateRange = DateNavRange.Month;
108108
rightDateRange = DateNavRange.Month;
109109

110-
FOOTER_DATE_FORMAT = 'YYYY-MM-dd';
110+
// 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';
111113

112114
leftAnchor = dayjs();
113115
rightAnchor = dayjs().add(1, MONTH);

0 commit comments

Comments
 (0)