fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Bug: Calendar component showing week of year

Open jmmartinez84 opened this issue 8 years ago • 4 comments

Bug Report

  • Package version(s): 5.55.0
  • Browser and OS versions: (fill this out if relevant)

Priorities and help requested (not applicable if asking question):

Are you willing to submit a PR to fix? Yes

Requested priority: Normal

Products/sites affected: (if applicable)

Describe the issue:

Calendar component does not show correct week of the year if firstDayOfWeek is set on Monday. Example year 2015.

Actual behavior:

getWeekOfYearFullDays always take as firstDayOfWeek=0 (Sunday)

Expected behavior:

getWeekOfYearFullDays should take firstDayOfWeek set in component props.

office-ui-fabric-issue

jmmartinez84 avatar Mar 02 '18 15:03 jmmartinez84

@johannao76 for visibility

dzearing avatar Mar 02 '18 16:03 dzearing

We will take a look in the coming sprint, thanks for reporting

johannao76 avatar Mar 02 '18 17:03 johannao76

@jmmartinez84: We are unable to repro this issue, can you provide a codepen or similar with a repro? Thanks! image

johannao76 avatar Mar 02 '18 19:03 johannao76

Sorry, I've found a configuration that meets with my region. Setting up this parameter works fine for me. firstWeekOfYear = { FirstWeekOfYear.FirstFourDayWeek }

I apologize for wasting your time.

jmmartinez84 avatar Mar 05 '18 11:03 jmmartinez84