Skip to content

Commit e7f9538

Browse files
Laffery昀澈
and
昀澈
authored
fix(module:date-picker): week number error when cross years (#7923)
Co-authored-by: 昀澈 <aoyuchen.ayc@alibaba-inc.com>
1 parent b383513 commit e7f9538

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/date-picker/date-picker.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ export class NzDatePickerComponent implements OnInit, OnChanges, AfterViewInit,
743743
const inputFormats: { [key in NzDateMode]?: string } = {
744744
year: 'yyyy',
745745
month: 'yyyy-MM',
746-
week: this.i18n.getDateLocale() ? 'RRRR-II' : 'yyyy-ww', // Format for week
746+
week: 'YYYY-ww',
747747
date: this.nzShowTime ? 'yyyy-MM-dd HH:mm:ss' : 'yyyy-MM-dd'
748748
};
749749

0 commit comments

Comments
 (0)