Skip to content

Remove date-only (@db.Date) treatment of initialDateScheduled#3994

Closed
Copilot wants to merge 2 commits intodates-fixfrom
copilot/sub-pr-3993
Closed

Remove date-only (@db.Date) treatment of initialDateScheduled#3994
Copilot wants to merge 2 commits intodates-fixfrom
copilot/sub-pr-3993

Conversation

Copy link

Copilot AI commented Feb 28, 2026

initialDateScheduled is a full datetime, but several callsites were treating it as a @db.Date (midnight-UTC date-only) value — using formatDateOnly, dbDateToLocalDate, and UTC-based weekday lookup. This removes all that special-casing.

Changes

  • EventCard.tsx: Drop isDateOnly flag, formatDateOnly import, UTC getWeekday path, and the @db.Date comment. Both initialDateScheduled and scheduledTimes now use formatEventDate uniformly.
  • EventAvailabilityPage.tsx / AvailabilityScheduleView.tsx: Remove unused dbDateToLocalDate imports that were pulled in for the (incorrect) date-only handling.

Notes

Original PR: #3993

Test Cases

  • Event card displays correct weekday/date when initialDateScheduled is set
  • Event card displays correct weekday/date when only scheduledTimes is set

Screenshots

N/A — logic-only change, no visual difference intended

Checklist

It can be helpful to check the Checks and Files changed tabs.
Please review the contributor guide and reach out to your Tech Lead if anything is unclear.
Please request reviewers and ping on slack only after you've gone through this whole checklist.

  • All commits are tagged with the ticket number
  • No linting errors / newline at end of file warnings
  • All code follows repository-configured prettier formatting
  • No merge conflicts
  • All checks passing
  • Screenshots of UI changes (see Screenshots section)
  • Remove any non-applicable sections of this template
  • Assign the PR to yourself
  • No yarn.lock changes (unless dependencies have changed)
  • Request reviewers & ping on Slack
  • PR is linked to the ticket (fill in the closes line below)

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: chpy04 <118906070+chpy04@users.noreply.github.com>
Copilot AI changed the title [WIP] Address feedback on changing date to datetime in dates fix PR Remove date-only (@db.Date) treatment of initialDateScheduled Feb 28, 2026
@chpy04 chpy04 closed this Feb 28, 2026
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.

2 participants