salesforce / salesforce/design-system-react

Wrong weekday when isIsoWeekday is set

Open
#2,274 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

date-picker P1
Dominant language
JavaScript
Stars
982
Forks
440
Avg merge
1d 21h
Merged PRs (30d)
4

Description

There's an issue with days labels when isIsoWeekday is set. For example 04.09.2019 is labeled as Thursday (should be labeled as Wednesday).
image

behavior can be checked in Storybook:
http://design-system-react-components.herokuapp.com/?path=/story/sldsdatepicker--iso-weekdays

When isIsoWeekday is not set everything is fine.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Storybook sldsdatepicker--iso-weekdays example and trace the date-labeling path when isIsoWeekday is set. Reproduce the 04.09.2019 case, compare it with the behavior when the option is unset, and consider the issue done when the date is labeled Wednesday in ISO mode without changing the non-ISO behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react, storybook
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.