components icon indicating copy to clipboard operation
components copied to clipboard

bug(mat-date-picker): the native date adapter can't detect first day of week from user locale

Open evil-shrike opened this issue 4 years ago • 7 comments
trafficstars

Reproduction

All material datepickers display weeks starting Sunday while I have Russia locale set up which demands Monday is the first day of week:

image

Yes, I know I can globally change starting day via DateAdapter but I need to datepickers to be users' locale compatible.

Expected Behavior

Monday is first day of week

Actual Behavior

Sunday is first day of week.

Environment

  • Angular: 11.0.3
  • CDK/Material: 11.2.4
  • Browser(s): Firefox 89
  • Operating System (e.g. Windows, macOS, Ubuntu): macOS 11.4

evil-shrike avatar Jun 25 '21 11:06 evil-shrike