Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove time from event date field in the CMS #1096

Open
wants to merge 4 commits into
base: UXIT-2094/improve-cms-event-dates
Choose a base branch
from

Conversation

CharlyMartin
Copy link
Collaborator

@CharlyMartin CharlyMartin commented Feb 12, 2025

πŸ“ Description

This PR updates the event's date field by removing the time portion, as only the day is needed.

πŸ› οΈ Key Changes

  • Updates config.yml
  • Removes the time portion from Markdown entries
  • Creates a IsoDateSchema schema, to replace z.coerce.date(). This schema ensures that the Date instance loaded from the CMS has no time component, meaning it ends with 00:00:00.000Z.
  • Refactors filterAndSortScheduleDays

πŸ§ͺ How to Test

Run the CMS locally, create an event and make sure the start and end times are only dates, not times.

πŸ“Έ Screenshots

CleanShot 2025-02-13 at 11 24 21@2x

πŸ”– Resources

Copy link

Copy link

vercel bot commented Feb 12, 2025

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Comments Updated (UTC)
ffdweb-site βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Feb 13, 2025 9:06am
filecoin-foundation-site βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Feb 13, 2025 9:06am

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.

1 participant