Skip to content

Show ISO week numbers for all week start preferences#9812

Open
TheHappyFella wants to merge 1 commit intotutao:masterfrom
TheHappyFella:feature/show-week-numbers-for-all-week-starts
Open

Show ISO week numbers for all week start preferences#9812
TheHappyFella wants to merge 1 commit intotutao:masterfrom
TheHappyFella:feature/show-week-numbers-for-all-week-starts

Conversation

@TheHappyFella
Copy link

Fixes #9811

Summary

Removes the Monday-only restriction for displaying ISO week numbers in calendar month view. Users with Sunday or Saturday week starts can
now see week numbers, while maintaining ISO 8601 standard internally (weeks always Monday-based).

Changes

  • Removed WeekStart.MONDAY condition from CalendarMonthView.ts:332-343
  • Week numbers now display for all week start preferences (Sunday, Monday, Saturday)
  • ISO 8601 week calculation unchanged (always Monday-based)

Testing

  • Tested with Sunday week start: Week numbers display correctly
  • Tested with Monday week start: No regression, works as before
  • Tested with Saturday week start: Week numbers display correctly
  • ISO week number calculation verified (always Monday-based)

Motivation

ISO 8601 week numbering is internationally recognized regardless of which day users prefer their week to start on. The previous restriction
unnecessarily limited this useful feature to Monday-start users only.

Technical Details

  • Week numbers calculated using Luxon's DateTime.weekNumber (ISO 8601 compliant)
  • Display logic separated from calculation logic
  • No changes to underlying week calculation algorithms

Platform Compatibility

  • Desktop: ✓
  • Web: ✓
  • Mobile: ✓

Screenshots/Evidence

Week numbers now visible for Sunday week start users

Security Considerations

None - UI display change only, no data or privacy implications

Previously, ISO week numbers were only displayed for users with Monday
as their week start day. This excluded users who prefer Sunday or Saturday
as their week start.

ISO 8601 week numbers are always Monday-based regardless of display
preference, so it's useful to show them for all users. This allows users
with different week start preferences to see standardized week numbers
for scheduling and coordination.

- Remove WeekStart.MONDAY restriction in CalendarMonthView
- Week numbers now display for Sunday, Monday, and Saturday start users
- ISO 8601 standard is maintained (weeks always start Monday internally)
@TheHappyFella
Copy link
Author

@charlag can you review this one too please?

@charlag
Copy link
Contributor

charlag commented Oct 16, 2025

@TheHappyFella hey. I don't think it's a good idea to be honest, we should use the week numbers as they are expected or not at all but I would have to check in with our Product Owner once he's available.

@TheHappyFella
Copy link
Author

@charlag
Thanks for the quick response.
I personally use Sunday as first day of the week (the motivation behind this PR), and every major calendar app (Google Calendar, Apple Calendar, Outlook, and even Proton Calendar) shows ISO week numbers regardless of week start preference.
ISO week numbers are a reference tool, not tied to the visual layout. They're useful for everyone, not just Monday-start users.

Let me know what the PO thinks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Calendar] ISO week numbers not shown for non-Monday week start users

2 participants