You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to ISO 8601, the current week number (as of february 25, 2025) should be 9, but igx-calendar with [showWeekNumbers]="true" puts it at 8. This is because there are different standards for week numbers. In Europe, Asia and Oceania, we mostly follow ISO 8601, where the week that contains a Thursday on January 1-4 will be numbered as week 1 (Monday is weekday 1 in this standard). What igniteui seems to follow is called the "Western traditional", where the week that contains a Saturday after January 1 becomes week 1 (Sunday is weekday 1 in this standard).
It would be nice if igniteui could look at the locale, or at least give options, to change the week numbers.
igniteui-angular version: 19.0.7
browser: Firefox, Chrome
Steps to reproduce
Create the following component: `<igx-calendar [showWeekNumbers]="true" locale="sv-SE" />
Look at January 1st 2025, what's the week number?
Result
The week number for january 1st 2025 shows 53
Expected result
The week number for january 1st 2025 should show 1
If it's too hard to create different rules for different locales, having an option would be OK.
Description
According to ISO 8601, the current week number (as of february 25, 2025) should be 9, but
igx-calendar
with[showWeekNumbers]="true"
puts it at 8. This is because there are different standards for week numbers. In Europe, Asia and Oceania, we mostly follow ISO 8601, where the week that contains a Thursday on January 1-4 will be numbered as week 1 (Monday is weekday 1 in this standard). What igniteui seems to follow is called the "Western traditional", where the week that contains a Saturday after January 1 becomes week 1 (Sunday is weekday 1 in this standard).It would be nice if igniteui could look at the locale, or at least give options, to change the week numbers.
Steps to reproduce
Result
The week number for january 1st 2025 shows 53
Expected result
The week number for january 1st 2025 should show 1
If it's too hard to create different rules for different locales, having an option would be OK.
More information
Read about different systems here:
https://en.wikipedia.org/wiki/Week#Other_week_numbering_systems
The text was updated successfully, but these errors were encountered: