Skip to content

Calendar Dates Do Not Match Correct Weekdays #3

@sumu9897

Description

@sumu9897

🐞 Calendar Dates Do Not Match Correct Weekdays

Description

The calendar view displays incorrect date-to-weekday alignment. Dates are rendered under the wrong day headers (e.g., a date that should fall on Thursday appears under Monday). This causes confusion and makes task scheduling unreliable.


Steps to Reproduce

  1. Open the Calendar view.
  2. Navigate to any month where the 1st day does not start on Sunday (e.g., January 2026).
  3. Observe that dates are placed directly from the 1st under Sunday instead of their correct weekday.

Expected Behavior

  • The calendar grid should align dates correctly with their real-world weekdays.
  • Days before the 1st of the month should appear as empty/disabled cells.
  • The calendar should visually match standard calendars (Google Calendar, Outlook, etc.).

Actual Behavior

  • The calendar renders only the days of the month without padding.
  • This causes all dates to shift left and appear under incorrect weekdays.

Root Cause

The calendar uses:

eachDayOfInterval(startOfMonth, endOfMonth)
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions